canopy-deploy 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -4
- package/src/index.ts +2 -3
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "canopy-deploy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Canopy CLI — security scanner & deploy tool for vibecoded apps",
|
|
5
5
|
"bin": {
|
|
6
6
|
"canopy": "dist/index.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"
|
|
9
|
+
"bundle": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.js --external:ssh2 --banner:js='#!/usr/bin/env node'",
|
|
10
|
+
"build": "npm run bundle"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"commander": "^12.0.0",
|
|
13
|
-
"
|
|
14
|
-
|
|
14
|
+
"ssh2": "^1.16.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"esbuild": "^0.25.0"
|
|
15
18
|
},
|
|
16
19
|
"keywords": [
|
|
17
20
|
"security",
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
1
|
import { program } from 'commander';
|
|
4
2
|
import { scan } from '@canopy/scanner';
|
|
5
3
|
import {
|
|
@@ -88,7 +86,8 @@ const PHASE_ICONS: Record<string, string> = {
|
|
|
88
86
|
deploy: '🚀', default: ' ',
|
|
89
87
|
};
|
|
90
88
|
|
|
91
|
-
|
|
89
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
|
|
90
|
+
program.name('canopy').description('Security scanner & deploy tool for vibecoded apps').version(pkg.version);
|
|
92
91
|
|
|
93
92
|
program.command('scan [path]').description('Scan a project for security issues')
|
|
94
93
|
.option('--json', 'Output raw JSON')
|