Skip to content

Commit 2a3a20f

Browse files
committed
Minor package.json reordering
1 parent 5093d24 commit 2a3a20f

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

package.json

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,38 @@
33
"version": "0.13.0",
44
"description": "CLI tool for Socket.dev",
55
"homepage": "http://github.com/SocketDev/socket-cli-js",
6-
"repository": {
7-
"type": "git",
8-
"url": "git://github.com/SocketDev/socket-cli-js.git"
9-
},
10-
"keywords": [],
6+
"license": "MIT",
7+
"repository": "github:SocketDev/socket-cli-js",
118
"author": {
129
"name": "Socket Inc",
1310
"email": "[email protected]",
1411
"url": "https://socket.dev"
1512
},
16-
"license": "MIT",
1713
"bin": {
1814
"socket": "dist/cli.js",
1915
"socket-npm": "dist/npm-cli.js",
2016
"socket-npx": "dist/npx-cli.js"
2117
},
22-
"files": [
23-
"bin/**",
24-
"dist/**",
25-
"translations.json"
26-
],
18+
"scripts": {
19+
"build": "npm run build:dist && npm run build:test",
20+
"build:dist": "rollup -c .config/rollup.dist.config.mjs",
21+
"build:test": "rollup -c .config/rollup.test.config.mjs",
22+
"check": "run-p -c --aggregate-output check:*",
23+
"check:lint": "eslint --report-unused-disable-directives .",
24+
"check:tsc": "tsc",
25+
"check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files \"test/*\"",
26+
"knip:dependencies": "knip --dependencies",
27+
"knip:exports": "knip --include exports,duplicates --reporter compact",
28+
"lint": "oxlint -c=./.oxlintrc.json --tsconfig=./tsconfig.json . -D correctness -D perf -D suspicious --promise-plugin --import-plugin",
29+
"lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
30+
"lint:fix:fast": "prettier --cache --log-level warn --write .",
31+
"prepare": "husky",
32+
"test": "run-s check build:* test:*",
33+
"test:c8": "c8 --reporter=none node --test \"test/socket-npm.test.cjs\"",
34+
"test-ci": "run-s build:* test:*",
35+
"test:unit": "tap",
36+
"test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include \"dist/*.js\" --exclude \"dist/vendor.js\" report"
37+
},
2738
"dependencies": {
2839
"@apideck/better-ajv-errors": "^0.3.6",
2940
"@cyclonedx/cdxgen": "^10.9.8",
@@ -148,24 +159,9 @@
148159
"engines": {
149160
"node": "^20.9.0 || >=22.0.0"
150161
},
151-
"scripts": {
152-
"build": "npm run build:dist && npm run build:test",
153-
"build:dist": "rollup -c .config/rollup.dist.config.mjs",
154-
"build:test": "rollup -c .config/rollup.test.config.mjs",
155-
"check": "run-p -c --aggregate-output check:*",
156-
"check:lint": "eslint --report-unused-disable-directives .",
157-
"check:tsc": "tsc",
158-
"check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files \"test/*\"",
159-
"knip:dependencies": "knip --dependencies",
160-
"knip:exports": "knip --include exports,duplicates --reporter compact",
161-
"lint": "oxlint -c=./.oxlintrc.json --tsconfig=./tsconfig.json . -D correctness -D perf -D suspicious --promise-plugin --import-plugin",
162-
"lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
163-
"lint:fix:fast": "prettier --cache --log-level warn --write .",
164-
"prepare": "husky",
165-
"test": "run-s check build:* test:*",
166-
"test:c8": "c8 --reporter=none node --test \"test/socket-npm.test.cjs\"",
167-
"test-ci": "run-s build:* test:*",
168-
"test:unit": "tap",
169-
"test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include \"dist/*.js\" --exclude \"dist/vendor.js\" report"
170-
}
162+
"files": [
163+
"bin/**",
164+
"dist/**",
165+
"translations.json"
166+
]
171167
}

0 commit comments

Comments
 (0)