socket 0.14.45 → 0.14.47

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket",
3
- "version": "0.14.45",
3
+ "version": "0.14.47",
4
4
  "description": "CLI tool for Socket.dev",
5
5
  "homepage": "http://github.com/SocketDev/socket-cli",
6
6
  "license": "MIT",
@@ -35,15 +35,16 @@
35
35
  "./translations.json": "./translations.json"
36
36
  },
37
37
  "scripts": {
38
- "build": "run-s build:*",
38
+ "build": "run-p -c --aggregate-output build:*",
39
39
  "build:dist": "del-cli 'dist' && rollup -c .config/rollup.dist.config.mjs",
40
- "build:test": "del-cli 'test/dist' && rollup -c .config/rollup.test.config.mjs",
40
+ "build:test-dist": "del-cli 'test/dist' && cross-env VITEST=1 rollup -c .config/rollup.test.config.mjs",
41
41
  "check": "run-p -c --aggregate-output check:*",
42
42
  "check:lint": "eslint --report-unused-disable-directives .",
43
43
  "check:lint:fix": "npm run check:lint -- --fix",
44
44
  "check:tsc": "tsc",
45
- "check:type-coverage": "type-coverage",
46
- "check:type-coverage:detail": "npm run check:type-coverage -- --detail",
45
+ "coverage": "run-s coverage:*",
46
+ "coverage:test": "run-s test:prepare test:unit:coverage",
47
+ "coverage:type": "type-coverage --detail",
47
48
  "clean": "run-p --aggregate-output clean:*",
48
49
  "clean:dist": "del-cli 'dist' 'test/dist'",
49
50
  "clean:node_modules": "del-cli '**/node_modules'",
@@ -55,12 +56,13 @@
55
56
  "lint:fix:fast": "biome format --write",
56
57
  "lint-staged": "lint-staged",
57
58
  "precommit": "lint-staged",
58
- "prepare": "husky && custompatch",
59
- "test": "run-s check build:* test:* test:coverage:*",
60
- "test-ci": "run-s build:* test:*",
61
- "test:unit": "tap-run",
62
- "test:coverage:c8": "c8 --reporter=none node --test 'test/socket-npm.test.cjs'",
63
- "test:coverage:merge": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include 'dist/{module-sync,require}/*.js' --exclude 'dist/require/vendor.js' report",
59
+ "prepare": "husky",
60
+ "test": "run-s check test:*",
61
+ "test:prepare": "cross-env VITEST=1 npm run build",
62
+ "test:unit": "vitest --run",
63
+ "test:unit:coverage": "vitest run --coverage",
64
+ "test:unit:update-snapshots": "vitest --update",
65
+ "test-ci": "run-s test:*",
64
66
  "update": "run-p --aggregate-output update:**",
65
67
  "update:deps": "npx --yes npm-check-updates"
66
68
  },
@@ -120,7 +122,6 @@
120
122
  "@rollup/plugin-node-resolve": "^16.0.0",
121
123
  "@rollup/plugin-replace": "^6.0.2",
122
124
  "@rollup/pluginutils": "^5.1.4",
123
- "@tapjs/run": "^4.0.2",
124
125
  "@types/blessed": "^0.1.25",
125
126
  "@types/cmd-shim": "^5.0.2",
126
127
  "@types/micromatch": "^4.0.9",
@@ -137,8 +138,8 @@
137
138
  "@types/yargs-parser": "^21.0.3",
138
139
  "@typescript-eslint/eslint-plugin": "^8.25.0",
139
140
  "@typescript-eslint/parser": "^8.25.0",
140
- "c8": "^10.1.3",
141
- "custompatch": "^1.1.4",
141
+ "@vitest/coverage-v8": "3.0.7",
142
+ "cross-env": "^7.0.3",
142
143
  "del-cli": "^6.0.0",
143
144
  "eslint": "^9.21.0",
144
145
  "eslint-import-resolver-oxc": "^0.12.0",
@@ -161,7 +162,8 @@
161
162
  "type-coverage": "^2.29.7",
162
163
  "typescript": "5.4.5",
163
164
  "typescript-eslint": "^8.25.0",
164
- "unplugin-purge-polyfills": "^0.0.7"
165
+ "unplugin-purge-polyfills": "^0.0.7",
166
+ "vitest": "^3.0.7"
165
167
  },
166
168
  "overrides": {
167
169
  "aggregate-error": "npm:@socketregistry/aggregate-error@^1",