Skip to content

Commit d54da49

Browse files
committed
fix(cli-with-sentry): use dist/index.js and validate cli.js.bz
- Changed bin path from dist/cli.js to dist/index.js - Updated verify script to check both dist/index.js and dist/cli.js.bz - Matches standard CLI build output structure
1 parent 5965736 commit d54da49

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

packages/cli-with-sentry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://socket.dev"
1717
},
1818
"bin": {
19-
"socket-with-sentry": "dist/cli.js"
19+
"socket-with-sentry": "dist/index.js"
2020
},
2121
"files": [
2222
"data/**",

packages/cli-with-sentry/scripts/verify-package.mjs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,16 @@ async function validate() {
6464
logger.log(success('package.json exists'))
6565
}
6666

67-
// Check dist/cli.js exists.
68-
logger.log(info('Checking dist/cli.js...'))
69-
const cliPath = path.join(packageRoot, 'dist', 'cli.js')
70-
if (!(await fileExists(cliPath))) {
71-
errors.push('dist/cli.js does not exist')
72-
} else {
73-
logger.log(success('dist/cli.js exists'))
67+
// Check dist files exist.
68+
const distFiles = ['index.js', 'cli.js.bz']
69+
for (const file of distFiles) {
70+
logger.log(info(`Checking dist/${file}...`))
71+
const filePath = path.join(packageRoot, 'dist', file)
72+
if (!(await fileExists(filePath))) {
73+
errors.push(`dist/${file} does not exist`)
74+
} else {
75+
logger.log(success(`dist/${file} exists`))
76+
}
7477
}
7578

7679
// Check data directory exists.

0 commit comments

Comments
 (0)