File tree Expand file tree Collapse file tree 5 files changed +69
-13
lines changed Expand file tree Collapse file tree 5 files changed +69
-13
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ const minify = watch ? process.argv.includes('--minify') : !process.argv.include
66const ctx = esbuild . context ( {
77 entryPoints : [ 'src/cli.ts' ] ,
88 tsconfig : './tsconfig.json' ,
9+ banner : {
10+ js : '#!/usr/bin/env node' ,
11+ } ,
912 bundle : true ,
1013 external : [ ] ,
1114 sourcemap : ! minify ,
Original file line number Diff line number Diff line change 1+ name : Publish Package to npmjs
2+ on :
3+ push :
4+ tags :
5+ - " v*.*.*"
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ environment : release # Optional: for enhanced security
10+ permissions :
11+ contents : read
12+ id-token : write
13+ steps :
14+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
15+ # Setup .npmrc file to publish to npm
16+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
17+ with :
18+ node-version : " lts/*"
19+ registry-url : " https://registry.npmjs.org"
20+ - name : Update npm
21+ run : npm install -g npm@latest
22+ - run : npm ci
23+ - run : npm publish
24+ env :
25+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Source files
2+ src /
3+ test /
4+
5+ # Build configuration
6+ .esbuild.js
7+ tsconfig.json
8+ eslint.config.mjs
9+ .mocharc.json
10+
11+ # IDE and editor files
12+ .vscode /
13+ .github /
14+ .vscodeignore
15+
16+ # Development files
17+ .gitignore
18+ * .map
19+
20+ # Dependencies
21+ node_modules /
22+
23+ # Test artifacts
24+ .vscode-test /
25+
26+ # Package artifacts
27+ * .vsix
28+ * .tgz
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88 ],
99 "repository" : {
1010 "type" : " git" ,
11- "url" : " https://github.com/zed-industries/js-debug-companion-cli"
11+ "url" : " git+ https://github.com/zed-industries/js-debug-companion-cli.git "
1212 },
1313 "license" : " MIT" ,
1414 "homepage" : " https://github.com/zed-industries/js-debug-companion-cli#readme" ,
1515 "main" : " ./out/cli.js" ,
16+ "bin" : {
17+ "js-debug-companion-cli" : " out/cli.js"
18+ },
19+ "files" : [
20+ " out/cli.js" ,
21+ " LICENSE" ,
22+ " README.md"
23+ ],
24+ "engines" : {
25+ "node" : " >=20.0.0"
26+ },
1627 "scripts" : {
17- "prepublish " : " rimraf out && node .esbuild.js --minify" ,
28+ "prepublishOnly " : " rimraf out && node .esbuild.js --minify" ,
1829 "compile" : " node .esbuild.js --minify" ,
1930 "cli" : " npm run compile && node out/cli.js" ,
2031 "watch" : " node .esbuild.js --watch" ,
You can’t perform that action at this time.
0 commit comments