@socketsecurity/cli 0.12.0 → 0.14.0

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/README.md CHANGED
@@ -1,11 +1,9 @@
1
1
  # Socket CLI
2
2
 
3
3
  [![Socket Badge](https://socket.dev/api/badge/npm/package/@socketsecurity/cli)](https://socket.dev/npm/package/@socketsecurity/cli)
4
- [![npm version](https://img.shields.io/npm/v/@socketsecurity/cli.svg?style=flat)](https://www.npmjs.com/package/@socketsecurity/cli)
5
- [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/SocketDev/eslint-config)
6
4
  [![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
7
5
 
8
- CLI tool for [Socket.dev](https://socket.dev/)
6
+ > CLI tool for [Socket.dev](https://socket.dev/)
9
7
 
10
8
  ## Usage
11
9
 
@@ -23,55 +21,84 @@ socket wrapper --enable
23
21
 
24
22
  ## Commands
25
23
 
26
- - `socket info <package@version>` - looks up issues for a package
24
+ - `socket info <package@version>` - Look up issues for a package.
27
25
 
28
- - `socket report create <path(s)-to-folder-or-file>` - creates a report on [socket.dev](https://socket.dev/)
26
+ - `socket optimize` - Optimize dependencies with
27
+ [`@socketregistry`](https://github.com/SocketDev/socket-registry-js) overrides
29
28
 
30
- Uploads the specified `package.json` and lock files for JavaScript, Python, and Go dependency manifests.
31
- If any folder is specified, the ones found in there recursively are uploaded.
29
+ - `socket raw-npm` and `socket raw-npx` - Temporarily disable the Socket
30
+ 'safe-npm' wrapper.
32
31
 
33
- Supports globbing such as `**/package.json`, `**/requirements.txt`, `**/pyproject.toml`, and `**/go.mod`.
32
+ - `socket report create <path(s)-to-folder-or-file>` - creates a report on
33
+ [socket.dev](https://socket.dev/)
34
34
 
35
- Ignores any file specified in your project's `.gitignore`, the `projectIgnorePaths` in your project's [`socket.yml`](https://docs.socket.dev/docs/socket-yml) and on top of that has a sensible set of [default ignores](https://www.npmjs.com/package/ignore-by-default)
35
+ Upload the specified `package.json` and lock files for JavaScript, Python, and
36
+ Go dependency manifests. If any folder is specified, the ones found in there
37
+ recursively are uploaded.
36
38
 
37
- - `socket report view <report-id>` - looks up issues and scores from a report
39
+ Supports globbing such as `**/package.json`, `**/requirements.txt`,
40
+ `**/pyproject.toml`, and `**/go.mod`.
38
41
 
39
- - `socket wrapper --enable` and `socket wrapper --disable` - Enables and disables the Socket 'safe-npm' wrapper.
42
+ Ignores any file specified in your project's `.gitignore`, the
43
+ `projectIgnorePaths` in your project's
44
+ [`socket.yml`](https://docs.socket.dev/docs/socket-yml) and on top of that has
45
+ a sensible set of
46
+ [default ignores](https://socket.dev/npm/package/ignore-by-default)
40
47
 
41
- - `socket raw-npm` and `socket raw-npx` - Temporarily disables the Socket 'safe-npm' wrapper.
48
+ - `socket report view <report-id>` - Look up issues and scores from a report.
49
+
50
+ - `socket wrapper --enable` and `socket wrapper --disable` - Enable and disable
51
+ the Socket 'safe-npm' wrapper.
42
52
 
43
53
  ## Aliases
44
54
 
45
55
  All aliases supports flags and arguments of the commands they alias.
46
56
 
47
- - `socket ci` - alias for `socket report create --view --strict` which creates a report and quits with an exit code if the result is unhealthy. Use like eg. `socket ci .` for a report for the current folder
57
+ - `socket ci` - alias for `socket report create --view --strict` which creates a
58
+ report and quits with an exit code if the result is unhealthy. Use like eg.
59
+ `socket ci .` for a report for the current folder
48
60
 
49
61
  ## Flags
50
62
 
51
63
  ### Command specific flags
52
64
 
53
- - `--view` - when set on `socket report create` the command will immediately do a `socket report view` style view of the created report, waiting for the server to complete it
65
+ - `--view` - when set on `socket report create` the command will immediately do
66
+ a `socket report view` style view of the created report, waiting for the
67
+ server to complete it
54
68
 
55
69
  ### Output flags
56
70
 
57
- - `--json` - outputs result as json which you can then pipe into [`jq`](https://stedolan.github.io/jq/) and other tools
58
- - `--markdown` - outputs result as markdown which you can then copy into an issue, PR or even chat
71
+ - `--json` - outputs result as json which you can then pipe into
72
+ [`jq`](https://stedolan.github.io/jq/) and other tools
73
+ - `--markdown` - outputs result as markdown which you can then copy into an
74
+ issue, PR or even chat
59
75
 
60
76
  ## Strictness flags
61
77
 
62
- - `--all` - by default only `high` and `critical` issues are included, by setting this flag all issues will be included
63
- - `--strict` - when set, exits with an error code if report result is deemed unhealthy
78
+ - `--all` - by default only `high` and `critical` issues are included, by
79
+ setting this flag all issues will be included
80
+ - `--strict` - when set, exits with an error code if report result is deemed
81
+ unhealthy
64
82
 
65
83
  ### Other flags
66
84
 
67
- - `--dry-run` - like all CLI tools that perform an action should have, we have a dry run flag. Eg. `socket report create` supports running the command without actually uploading anything
68
- - `--debug` - outputs additional debug output. Great for debugging, geeks and us who develop. Hopefully you will never _need_ it, but it can still be fun, right?
69
- - `--help` - prints the help for the current command. All CLI tools should have this flag
70
- - `--version` - prints the version of the tool. All CLI tools should have this flag
85
+ - `--dry-run` - like all CLI tools that perform an action should have, we have a
86
+ dry run flag. Eg. `socket report create` supports running the command without
87
+ actually uploading anything
88
+ - `--debug` - outputs additional debug output. Great for debugging, geeks and us
89
+ who develop. Hopefully you will never _need_ it, but it can still be fun,
90
+ right?
91
+ - `--help` - prints the help for the current command. All CLI tools should have
92
+ this flag
93
+ - `--version` - prints the version of the tool. All CLI tools should have this
94
+ flag
71
95
 
72
96
  ## Configuration files
73
97
 
74
- The CLI reads and uses data from a [`socket.yml` file](https://docs.socket.dev/docs/socket-yml) in the folder you run it in. It supports the version 2 of the `socket.yml` file format and makes use of the `projectIgnorePaths` to excludes files when creating a report.
98
+ The CLI reads and uses data from a
99
+ [`socket.yml` file](https://docs.socket.dev/docs/socket-yml) in the folder you
100
+ run it in. It supports the version 2 of the `socket.yml` file format and makes
101
+ use of the `projectIgnorePaths` to excludes files when creating a report.
75
102
 
76
103
  ## Environment variables
77
104
 
@@ -81,15 +108,21 @@ The CLI reads and uses data from a [`socket.yml` file](https://docs.socket.dev/d
81
108
 
82
109
  ### Environment variables for development
83
110
 
84
- - `SOCKET_SECURITY_API_BASE_URL` - if set, this will be the base for all API-calls. Defaults to `https://api.socket.dev/v0/`
85
- - `SOCKET_SECURITY_API_PROXY` - if set to something like [`http://127.0.0.1:9090`](https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries), then all request will be proxied through that proxy
111
+ - `SOCKET_SECURITY_API_BASE_URL` - if set, this will be the base for all
112
+ API-calls. Defaults to `https://api.socket.dev/v0/`
113
+ - `SOCKET_SECURITY_API_PROXY` - if set to something like
114
+ [`http://127.0.0.1:9090`](https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries),
115
+ then all request will be proxied through that proxy
86
116
 
87
117
  ## Similar projects
88
118
 
89
- - [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js) - the SDK used in this CLI
119
+ - [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js) - the SDK
120
+ used in this CLI
90
121
 
91
122
  ## See also
92
123
 
93
124
  - [Announcement blog post](https://socket.dev/blog/announcing-socket-cli-preview)
94
- - [Socket API Reference](https://docs.socket.dev/reference) - the API used in this CLI
95
- - [Socket GitHub App](https://github.com/apps/socket-security) - the plug-and-play GitHub App
125
+ - [Socket API Reference](https://docs.socket.dev/reference) - the API used in
126
+ this CLI
127
+ - [Socket GitHub App](https://github.com/apps/socket-security) - the
128
+ plug-and-play GitHub App
package/package.json CHANGED
@@ -1,173 +1,172 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "CLI tool for Socket.dev",
5
5
  "homepage": "http://github.com/SocketDev/socket-cli-js",
6
+ "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",
8
- "url": "git://github.com/SocketDev/socket-cli-js.git"
9
+ "url": "git+https://github.com/SocketDev/socket-cli-js.git"
9
10
  },
10
- "keywords": [],
11
11
  "author": {
12
12
  "name": "Socket Inc",
13
13
  "email": "eng@socket.dev",
14
14
  "url": "https://socket.dev"
15
15
  },
16
- "license": "MIT",
17
16
  "bin": {
18
17
  "socket": "dist/cli.js",
19
18
  "socket-npm": "dist/npm-cli.js",
20
19
  "socket-npx": "dist/npx-cli.js"
21
20
  },
22
- "files": [
23
- "bin/**",
24
- "dist/**",
25
- "translations.json"
26
- ],
21
+ "scripts": {
22
+ "build": "npm run build:dist && npm run build:test",
23
+ "build:dist": "rollup -c .config/rollup.dist.config.mjs",
24
+ "build:test": "rollup -c .config/rollup.test.config.mjs",
25
+ "check": "run-p -c --aggregate-output check:*",
26
+ "check:lint": "eslint --report-unused-disable-directives .",
27
+ "check:tsc": "tsc",
28
+ "check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files 'test/*'",
29
+ "knip:dependencies": "knip --dependencies",
30
+ "knip:exports": "knip --include exports,duplicates",
31
+ "lint": "oxlint -c=./.oxlintrc.json --ignore-path=./.prettierignore --tsconfig=./tsconfig.json . -D correctness -D perf -D suspicious --promise-plugin --import-plugin",
32
+ "lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
33
+ "lint:fix:fast": "prettier --cache --log-level warn --write .",
34
+ "prepare": "husky",
35
+ "test": "run-s check build:* test:*",
36
+ "test:c8": "c8 --reporter=none node --test 'test/socket-npm.test.cjs'",
37
+ "test-ci": "run-s build:* test:*",
38
+ "test:unit": "tap",
39
+ "test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include 'dist/*.js' --exclude 'dist/vendor.js' report"
40
+ },
27
41
  "dependencies": {
28
42
  "@apideck/better-ajv-errors": "^0.3.6",
29
- "@cyclonedx/cdxgen": "^10.9.4",
30
- "@inquirer/prompts": "^5.3.2",
43
+ "@cyclonedx/cdxgen": "^10.10.4",
44
+ "@inquirer/prompts": "^7.0.0",
45
+ "@npmcli/promise-spawn": "^8.0.1",
46
+ "@socketregistry/hyrious__bun.lockb": "1.0.0",
31
47
  "@socketsecurity/config": "^2.1.3",
32
- "@socketsecurity/sdk": "^1.2.0",
48
+ "@socketsecurity/registry": "^1.0.2",
49
+ "@socketsecurity/sdk": "^1.3.0",
33
50
  "ansi-align": "^3.0.1",
34
51
  "blessed": "^0.1.81",
35
52
  "blessed-contrib": "^4.11.0",
53
+ "browserslist": "4.24.0",
36
54
  "chalk-table": "^1.0.2",
37
- "cli-boxes": "^3.0.0",
38
- "cli-spinners": "^2.9.2",
55
+ "cli-boxes": "^4.0.1",
56
+ "cli-spinners": "^3.2.0",
39
57
  "cross-spawn": "^7.0.3",
40
58
  "dot-prop": "^9.0.0",
41
- "eastasianwidth": "^0.2.0",
42
- "emoji-regex": "^10.3.0",
59
+ "eastasianwidth": "^0.3.0",
60
+ "emoji-regex": "^10.4.0",
43
61
  "fast-glob": "^3.3.2",
44
- "graceful-fs": "^4.2.6",
62
+ "graceful-fs": "^4.2.11",
63
+ "has-flag": "^5.0.1",
45
64
  "hpagent": "^1.2.0",
46
- "ignore": "^5.3.1",
47
- "ini": "4.1.3",
48
- "node-domexception": "^1.0.0",
49
- "onetime": "^5.1.0",
50
- "pacote": "^18.0.6",
65
+ "ignore": "^6.0.2",
66
+ "ini": "5.0.0",
67
+ "onetime": "^7.0.0",
68
+ "pacote": "^19.0.0",
51
69
  "pony-cause": "^2.1.11",
52
70
  "rc": "1.2.8",
53
71
  "registry-auth-token": "^5.0.2",
54
- "semver": "^7.6.2",
72
+ "semver": "^7.6.3",
55
73
  "signal-exit": "^4.1.0",
56
- "supports-hyperlinks": "^2.2.0",
74
+ "supports-color": "^9.4.0",
75
+ "supports-hyperlinks": "^3.1.0",
57
76
  "synp": "^1.9.13",
58
- "which": "^4.0.0",
59
- "write-file-atomic": "^5.0.1",
77
+ "which": "^5.0.0",
78
+ "write-file-atomic": "^6.0.0",
60
79
  "yargs-parser": "^21.1.1"
61
80
  },
62
81
  "devDependencies": {
63
- "@babel/core": "^7.24.9",
64
- "@babel/plugin-proposal-export-default-from": "^7.24.7",
65
- "@babel/plugin-transform-export-namespace-from": "^7.24.7",
66
- "@babel/plugin-transform-modules-commonjs": "^7.24.8",
67
- "@babel/plugin-transform-runtime": "^7.24.7",
68
- "@babel/preset-env": "^7.24.8",
69
- "@babel/preset-typescript": "^7.24.7",
70
- "@babel/runtime": "^7.24.8",
71
- "@eslint/compat": "^1.1.1",
72
- "@rollup/plugin-commonjs": "^26.0.1",
73
- "@rollup/plugin-node-resolve": "^15.2.3",
74
- "@rollup/plugin-replace": "^5.0.7",
75
- "@rollup/pluginutils": "^5.1.0",
76
- "@socketsecurity/eslint-config": "^5.0.1",
77
- "@tsconfig/node20": "^20.1.4",
82
+ "@babel/core": "^7.25.8",
83
+ "@babel/plugin-proposal-export-default-from": "^7.25.8",
84
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
85
+ "@babel/plugin-transform-export-namespace-from": "^7.25.8",
86
+ "@babel/plugin-transform-modules-commonjs": "^7.25.7",
87
+ "@babel/plugin-transform-runtime": "^7.25.7",
88
+ "@babel/preset-env": "^7.25.8",
89
+ "@babel/preset-typescript": "^7.25.7",
90
+ "@babel/runtime": "^7.25.7",
91
+ "@eslint/compat": "^1.2.0",
92
+ "@rollup/plugin-commonjs": "^28.0.0",
93
+ "@rollup/plugin-node-resolve": "^15.3.0",
94
+ "@rollup/plugin-replace": "^6.0.1",
95
+ "@rollup/pluginutils": "^5.1.2",
96
+ "@socketregistry/hyrious__bun.lockb": "^1.0.0",
97
+ "@types/blessed": "^0.1.25",
78
98
  "@types/micromatch": "^4.0.9",
79
- "@types/mocha": "^10.0.7",
99
+ "@types/mocha": "^10.0.9",
80
100
  "@types/mock-fs": "^4.13.4",
81
- "@types/node": "^20.14.12",
101
+ "@types/node": "^22.7.5",
82
102
  "@types/npm": "^7.19.3",
83
- "@types/npmcli__arborist": "^5.6.9",
103
+ "@types/npmcli__arborist": "^5.6.11",
104
+ "@types/npmcli__promise-spawn": "^6.0.3",
105
+ "@types/semver": "^7.5.8",
84
106
  "@types/update-notifier": "^6.0.8",
85
107
  "@types/which": "^3.0.4",
86
108
  "@types/yargs-parser": "^21.0.3",
87
- "@typescript-eslint/eslint-plugin": "^7.17.0",
88
- "@typescript-eslint/parser": "7.10.0",
109
+ "@typescript-eslint/eslint-plugin": "^8.8.1",
110
+ "@typescript-eslint/parser": "^8.8.1",
89
111
  "c8": "^10.1.2",
90
112
  "chalk": "^5.3.0",
91
- "esbuild": "^0.23.0",
92
- "eslint": "^8.56.0",
93
- "eslint-config-prettier": "^9.1.0",
94
- "eslint-config-standard": "^17.1.0",
95
- "eslint-config-standard-jsx": "^11.0.0",
96
- "eslint-import-resolver-typescript": "^3.6.1",
113
+ "eslint": "^9.12.0",
97
114
  "eslint-plugin-depend": "^0.11.0",
98
- "eslint-plugin-import": "^2.29.1",
99
- "eslint-plugin-n": "^16.6.2",
100
- "eslint-plugin-promise": "^6.6.0",
101
- "eslint-plugin-unicorn": "^48.0.1",
102
- "execa": "^9.3.0",
103
115
  "globby": "^14.0.2",
104
- "husky": "^9.1.4",
116
+ "husky": "^9.1.6",
105
117
  "is-interactive": "^2.0.0",
106
- "is-unicode-supported": "^2.0.0",
107
- "knip": "^5.27.0",
108
- "magic-string": "^0.30.10",
118
+ "is-unicode-supported": "^2.1.0",
119
+ "knip": "^5.33.3",
120
+ "magic-string": "^0.30.11",
109
121
  "meow": "^13.2.0",
110
- "mock-fs": "^5.2.0",
111
- "nock": "^13.5.4",
112
- "npm-run-all2": "^6.2.2",
122
+ "mock-fs": "^5.3.0",
123
+ "nock": "^13.5.5",
124
+ "normalize-package-data": "^7.0.0",
125
+ "npm-run-all2": "^6.2.3",
113
126
  "open": "^10.1.0",
114
- "ora": "^8.0.1",
127
+ "ora": "^8.1.0",
128
+ "oxlint": "^0.9.10",
115
129
  "prettier": "3.3.3",
116
130
  "read-package-up": "^11.0.0",
117
- "rollup": "4.19.0",
131
+ "rollup": "4.24.0",
118
132
  "rollup-plugin-ts": "^3.4.5",
119
- "tap": "^21.0.0",
133
+ "tap": "^21.0.1",
120
134
  "terminal-link": "^3.0.0",
121
135
  "type-coverage": "^2.29.1",
122
- "typescript": "~5.4.5",
123
- "unplugin-purge-polyfills": "^0.0.4",
124
- "update-notifier": "^7.2.0",
125
- "validate-npm-package-name": "^5.0.1"
136
+ "typescript": "5.4.5",
137
+ "typescript-eslint": "^8.8.1",
138
+ "unplugin-purge-polyfills": "^0.0.7",
139
+ "update-notifier": "^7.3.1",
140
+ "validate-npm-package-name": "^6.0.0"
126
141
  },
127
142
  "overrides": {
128
143
  "@cyclonedx/cdxgen": {
129
- "packageurl-js": "https://registry.npmjs.org/@jdalton/packageurl-js/-/packageurl-js-1.5.0.tgz"
144
+ "packageurl-js": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-2.0.1.tgz"
130
145
  },
131
- "array-includes": "npm:@nolyfill/array-includes@^1",
132
- "array.prototype.findlast": "npm:@nolyfill/array.prototype.findlast@^1",
133
- "array.prototype.findlastindex": "npm:@nolyfill/array.prototype.findlastindex@^1",
134
- "array.prototype.flat": "npm:@nolyfill/array.prototype.flat@^1",
135
- "array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@^1",
136
- "array.prototype.tosorted": "npm:@nolyfill/array.prototype.tosorted@^1",
137
- "es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
138
- "globalthis": "npm:@nolyfill/globalthis@^1",
139
- "hasown": "npm:@nolyfill/hasown@^1",
140
- "is-core-module": "npm:@nolyfill/is-core-module@^1",
141
- "object.assign": "npm:@nolyfill/object.assign@^1",
142
- "object.entries": "npm:@nolyfill/object.entries@^1",
143
- "object.fromentries": "npm:@nolyfill/object.fromentries@^1",
144
- "object.groupby": "npm:@nolyfill/object.groupby@^1",
145
- "object.values": "npm:@nolyfill/object.values@^1",
146
- "side-channel": "npm:@nolyfill/side-channel@^1",
147
- "string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@^1",
148
- "string.prototype.repeat": "npm:@nolyfill/string.prototype.repeat@^1"
146
+ "aggregate-error": "npm:@socketregistry/aggregate-error@^1",
147
+ "es-define-property": "npm:@socketregistry/es-define-property@^1",
148
+ "function-bind": "npm:@socketregistry/function-bind@^1",
149
+ "globalthis": "npm:@socketregistry/globalthis@^1",
150
+ "gopd": "npm:@socketregistry/gopd@^1",
151
+ "has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1",
152
+ "has-proto": "npm:@socketregistry/has-proto@^1",
153
+ "has-symbols": "npm:@socketregistry/has-symbols@^1",
154
+ "hasown": "npm:@socketregistry/hasown@^1",
155
+ "indent-string": "npm:@socketregistry/indent-string@^1",
156
+ "is-core-module": "npm:@socketregistry/is-core-module@^1",
157
+ "isarray": "npm:@socketregistry/isarray@^1",
158
+ "path-parse": "npm:@socketregistry/path-parse@^1",
159
+ "safe-buffer": "npm:@socketregistry/safe-buffer@^1",
160
+ "safer-buffer": "npm:@socketregistry/safer-buffer@^1",
161
+ "set-function-length": "npm:@socketregistry/set-function-length@^1",
162
+ "side-channel": "npm:@socketregistry/side-channel@^1"
149
163
  },
150
164
  "engines": {
151
165
  "node": "^20.9.0 || >=22.0.0"
152
166
  },
153
- "scripts": {
154
- "//check:knip": "knip",
155
- "build": "npm run build:dist && npm run build:test",
156
- "build:dist": "rollup -c .config/rollup.dist.config.mjs",
157
- "build:test": "rollup -c .config/rollup.test.config.mjs",
158
- "check:lint": "eslint --report-unused-disable-directives .",
159
- "check:tsc": "tsc",
160
- "check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files 'test/*'",
161
- "check": "run-p -c --aggregate-output check:*",
162
- "prepare": "husky",
163
- "test:c8": "c8 --reporter=none node --test \"test/socket-npm.test.cjs\"",
164
- "test:unit": "tap",
165
- "test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include \"dist/*.js\" --exclude \"dist/vendor.js\" report",
166
- "test-ci": "run-s build:* test:*",
167
- "test": "run-s check build:* test:*",
168
- "lint": "NODE_OPTIONS=--max-old-space-size=10240 eslint --quiet .",
169
- "lint:fix": "npm run lint:fix:fast && NODE_OPTIONS=--max-old-space-size=10240 eslint --quiet --cache --fix .",
170
- "lint:fix:fast": "prettier --cache --log-level warn --write .",
171
- "//postinstall": "node ./cli.js wrapper --postinstall"
172
- }
167
+ "files": [
168
+ "bin/**",
169
+ "dist/**",
170
+ "translations.json"
171
+ ]
173
172
  }
package/dist/cli.d.ts DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts","../src/utils/formatting.ts","../src/utils/meow-with-subcommands.ts","../src/commands/cdxgen.ts","../src/flags.ts","../src/utils/api-helpers.ts","../src/utils/misc.ts","../src/utils/format-issues.ts","../src/commands/info.ts","../src/commands/login.ts","../src/commands/logout.ts","../src/commands/npm.ts","../src/commands/npx.ts","../src/commands/organization.ts","../src/commands/raw-npm.ts","../src/commands/raw-npx.ts","../src/commands/report/view.ts","../src/commands/report/create.ts","../src/commands/report/index.ts","../src/commands/wrapper.ts","../src/commands/scan/create.ts","../src/commands/scan/delete.ts","../src/commands/scan/list.ts","../src/commands/scan/metadata.ts","../src/commands/scan/stream.ts","../src/commands/scan/index.ts","../src/commands/audit-log.ts","../src/commands/repos/create.ts","../src/commands/repos/delete.ts","../src/commands/repos/list.ts","../src/commands/repos/update.ts","../src/commands/repos/view.ts","../src/commands/repos/index.ts","../src/commands/dependencies.ts","../src/commands/analytics.ts","../src/commands/diff-scan/get.ts","../src/commands/diff-scan/index.ts","../src/commands/index.ts"],"names":[],"mappings":""}