-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaging commands as NPM scripts
- Loading branch information
Showing
3 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,22 +9,22 @@ | |
{ | ||
"//": "build the macos", | ||
"path": "@semantic-release/exec", | ||
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t mac-x64-12.18.2 -o snyk-api-import-macos" | ||
"cmd": "npm run pkg-binaries:macos" | ||
}, | ||
{ | ||
"//": "build the linux", | ||
"path": "@semantic-release/exec", | ||
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t linux-x64-12.16.2 -o snyk-api-import-linux" | ||
"cmd": "npm run pkg-binaries:linux" | ||
}, | ||
{ | ||
"//": "build the alpine", | ||
"path": "@semantic-release/exec", | ||
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t alpine-x64-12.9.1 -o snyk-api-import-alpine" | ||
"cmd": "npm run pkg-binaries:alpine" | ||
}, | ||
{ | ||
"//": "build the windows binaries", | ||
"path": "@semantic-release/exec", | ||
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t windows-x64-12.18.2 -o snyk-api-import-win.exe" | ||
"cmd": "npm run pkg-binaries:windows" | ||
}, | ||
{ | ||
"//": "shasum all binaries", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,11 @@ | |
"build-watch": "tsc -w", | ||
"prepare": "npm run build", | ||
"snyk-test": "snyk test", | ||
"pkg-binaries-linux": "npx [email protected] dist/index.js -r './dist/**/*.js' -t linux-x64-12.16.2 -o snyk-api-import-linux", | ||
"pkg-binaries": "npx [email protected] dist/index.js -r './dist/**/*.js' -t mac-x64-12.18.2 -o snyk-api-import-macos" | ||
"pkg-binaries:macos": "npx @yao-pkg/pkg . -t node20-macos-x64 -o snyk-api-import-macos", | ||
"pkg-binaries:macos-arm": "npx @yao-pkg/pkg . -t node20-macos-arm64 -o snyk-api-import-macos-arm", | ||
"pkg-binaries:linux": "npx @yao-pkg/pkg . -t node20-linux-x64 -o snyk-api-import-linux", | ||
"pkg-binaries:alpine": "npx @yao-pkg/pkg . -t node20-alpine-x64 -o snyk-api-import-alpine", | ||
"pkg-binaries:windows": "npx @yao-pkg/pkg . -t node20-win-x64 -o snyk-api-import-win.exe" | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"repository": { | ||
|
@@ -90,6 +93,9 @@ | |
"pkg": { | ||
"scripts": [ | ||
"dist/**/*.js" | ||
], | ||
"assets": [ | ||
"./node_modules/axios/dist/node/axios.cjs" | ||
] | ||
} | ||
} |