Skip to content

Commit

Permalink
fix: Publish TS defintion files into lib after building
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Mar 23, 2022
1 parent b4969bf commit 89cd16b
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
run: npm install --prefer-offline

- name: Build
run: npm run build
run: |
npm run build
npm run copy-ts-defintions
- name: Lint
run: npm run lint
Expand Down
138 changes: 138 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"test": "nyc mocha src/*.test.js -r @swc-node/register",
"test:watch": "npm test -- --watch",
"lint": "standard --verbose | snazzy",
"build": "swc src -d lib --copy-files",
"build": "swc src --ignore src/__test__,src/*.d.ts --delete-dir-on-start -d lib",
"copy-ts-defintions": "copyfiles src/*.d.ts lib -f",
"postinstall": "npm run install-binary",
"coverage": "nyc report --reporter=lcov",
"precodeclimate": "npm run coverage",
Expand Down
2 changes: 1 addition & 1 deletion src/exec.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default function(command: string, args: string[], stdin: string, cwd?: string): Promise<string>
export default function(command: string, args: string[], stdin: string, cwd?: string): Promise<string>
2 changes: 1 addition & 1 deletion src/jq.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { PartialOptions } from "./options"

export function run(filter: string, json: any, options?: PartialOptions, jqPath?: string, cwd?: string): Promise<object | string>
export function run(filter: string, json: any, options?: PartialOptions, jqPath?: string, cwd?: string): Promise<object | string>

0 comments on commit 89cd16b

Please sign in to comment.