File tree Expand file tree Collapse file tree 7 files changed +18
-11
lines changed Expand file tree Collapse file tree 7 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,9 @@ jobs:
228228 with :
229229 node-version : ' 20.10.0'
230230
231+ - name : Install dependencies
232+ run : npm ci --ignore-scripts
233+
231234 - name : Download compiled binaries
232235 uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # 6.0.0
233236 with :
Original file line number Diff line number Diff line change 44node_modules
55coverage
66dist
7+ js-dist
78dump
89checksums.txt
910yarn-error.log
Original file line number Diff line number Diff line change 66! README.md
77! LICENSE
88! bin /sentry-cli
9- ! js
9+ ! js-dist
1010! scripts /install.js
1111! checksums.txt
1212
Original file line number Diff line number Diff line change 33'use strict' ;
44
55const childProcess = require ( 'child_process' ) ;
6- const SentryCli = require ( '../js' ) ;
6+ const SentryCli = require ( '../js-dist ' ) ;
77
88const child = childProcess
99 . spawn ( SentryCli . getPath ( ) , process . argv . slice ( 2 ) , {
Original file line number Diff line number Diff line change 99 "engines" : {
1010 "node" : " >= 10"
1111 },
12- "main" : " js/index.js" ,
13- "types" : " js/index.d.ts" ,
12+ "main" : " js-dist /index.js" ,
13+ "types" : " js-dist /index.d.ts" ,
1414 "bin" : {
1515 "sentry-cli" : " bin/sentry-cli"
1616 },
2929 "jest" : " ^27.5.1" ,
3030 "npm-run-all" : " ^4.1.5" ,
3131 "prettier" : " 2.8.8" ,
32- "typescript" : " ~ 5.8.3"
32+ "typescript" : " 5.8.3"
3333 },
3434 "optionalDependencies" : {
3535 "@sentry/cli-darwin" : " 2.58.2" ,
4242 "@sentry/cli-win32-arm64" : " 2.58.2"
4343 },
4444 "scripts" : {
45- "postinstall" : " node ./scripts/install.js" ,
45+ "postinstall" : " npm run build && node ./scripts/install.js" ,
46+ "build" : " tsc" ,
47+ "prepack" : " npm run build" ,
4648 "fix" : " npm-run-all fix:eslint fix:prettier" ,
4749 "fix:eslint" : " eslint --fix bin/* scripts/**/*.js js/**/*.js" ,
4850 "fix:prettier" : " prettier --write bin/* scripts/**/*.js js/**/*.js" ,
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ const ProgressBar = require('progress');
1616const Proxy = require ( 'proxy-from-env' ) ;
1717const which = require ( 'which' ) ;
1818
19- const helper = require ( '../js/helper' ) ;
19+ const helper = require ( '../js-dist /helper' ) ;
2020const pkgInfo = require ( '../package.json' ) ;
21- const Logger = require ( '../js/logger' ) ;
21+ const Logger = require ( '../js-dist /logger' ) ;
2222
2323const logger = new Logger ( getLogStream ( 'stderr' ) ) ;
2424
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "allowJs" : true ,
44 "checkJs" : true ,
5- "noEmit" : true ,
65 "resolveJsonModule" : true ,
76 "target" : " ES2015" ,
87 "moduleResolution" : " node" ,
9- "skipLibCheck" : true
8+ "skipLibCheck" : true ,
9+ "rootDir" : " js" ,
10+ "outDir" : " js-dist"
1011 },
11- "include" : [" js/**/*.js" ],
12+ "include" : [" js/**/*.ts " , " js/**/*. js" ],
1213 "exclude" : [" **/__tests__/**" , " **/__mocks__/**" ]
1314}
You can’t perform that action at this time.
0 commit comments