Skip to content

Commit 40d7e09

Browse files
authoredJun 14, 2023
fix: remove unnecessary package.json values (#6555)
1 parent 3a7378d commit 40d7e09

File tree

4 files changed

+7
-20
lines changed

4 files changed

+7
-20
lines changed
 

‎package.json

-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
},
3535
"directories": {
3636
"doc": "./doc",
37-
"lib": "./lib",
3837
"man": "./man"
3938
},
4039
"main": "./index.js",
@@ -213,14 +212,10 @@
213212
"test-all": "node . run test -ws -iwr --if-present",
214213
"snap": "tap",
215214
"prepack": "node . run build -w docs",
216-
"test:nocleanup": "NO_TEST_CLEANUP=1 node . run test --",
217-
"sudotest": "sudo node . run run test --",
218-
"sudotest:nocleanup": "sudo NO_TEST_CLEANUP=1 node . run test --",
219215
"posttest": "node . run lint",
220216
"lint": "eslint \"**/*.js\"",
221217
"lintfix": "node . run lint -- --fix",
222218
"lint-all": "node . run lint -ws -iwr --if-present",
223-
"prelint": "rimraf test/npm_cache*",
224219
"resetdeps": "node scripts/resetdeps.js",
225220
"rp-pull-request": "node scripts/update-authors.js",
226221
"postlint": "template-oss-check",
@@ -231,7 +226,6 @@
231226
"LC_ALL=sk"
232227
],
233228
"color": 1,
234-
"files": "test/{lib,bin,index.js}",
235229
"timeout": 600,
236230
"nyc-arg": [
237231
"--exclude",

‎tap-snapshots/test/lib/commands/publish.js.test.cjs

-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ Object {
115115
"description": "a package manager for JavaScript",
116116
"directories": Object {
117117
"doc": "./doc",
118-
"lib": "./lib",
119118
"man": "./man",
120119
},
121120
"exports": Object {

‎workspaces/arborist/package.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,12 @@
7474
"bin": {
7575
"arborist": "bin/index.js"
7676
},
77-
"//": "sk test-env locale to catch locale-specific sorting",
7877
"tap": {
79-
"color": true,
8078
"after": "test/fixtures/cleanup.js",
8179
"test-env": [
82-
"NODE_OPTIONS=--no-warnings",
8380
"LC_ALL=sk"
8481
],
85-
"node-arg": [
86-
"--no-warnings",
87-
"--no-deprecation"
88-
],
82+
"color": 1,
8983
"timeout": "360",
9084
"nyc-arg": [
9185
"--exclude",

‎workspaces/arborist/test/isolated-mode.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ tap.test('bundled dependencies of internal packages', async t => {
902902
rule7.apply(t, dir, resolved, asserted)
903903

904904
const isexePath = path.join(dir, 'node_modules', 'isexe')
905-
t.equals(isexePath, fs.realpathSync(isexePath))
905+
t.equal(isexePath, fs.realpathSync(isexePath))
906906
})
907907

908908
tap.test('nested bundled dependencies of internal packages', async t => {
@@ -954,7 +954,7 @@ tap.test('nested bundled dependencies of internal packages', async t => {
954954
rule7.apply(t, dir, resolved, asserted)
955955

956956
const isexePath = path.join(dir, 'node_modules', 'isexe')
957-
t.equals(isexePath, fs.realpathSync(isexePath))
957+
t.equal(isexePath, fs.realpathSync(isexePath))
958958
})
959959

960960
tap.test('nested bundled dependencies of workspaces', async t => {
@@ -998,9 +998,9 @@ tap.test('nested bundled dependencies of workspaces', async t => {
998998
rule7.apply(t, dir, resolved, asserted)
999999

10001000
const isexePath = path.join(dir, 'node_modules', 'isexe')
1001-
t.equals(isexePath, fs.realpathSync(isexePath))
1001+
t.equal(isexePath, fs.realpathSync(isexePath))
10021002
const whichPath = path.join(dir, 'node_modules', 'which')
1003-
t.equals(whichPath, fs.realpathSync(whichPath))
1003+
t.equal(whichPath, fs.realpathSync(whichPath))
10041004
})
10051005

10061006
tap.test('nested bundled dependencies of workspaces with conflicting isolated dep', async t => {
@@ -1054,9 +1054,9 @@ tap.test('nested bundled dependencies of workspaces with conflicting isolated de
10541054
rule7.apply(t, dir, resolved, asserted)
10551055

10561056
const isexePath = path.join(dir, 'packages', 'bar', 'node_modules', 'isexe')
1057-
t.equals(isexePath, fs.realpathSync(isexePath))
1057+
t.equal(isexePath, fs.realpathSync(isexePath))
10581058
const whichPath = path.join(dir, 'packages', 'bar', 'node_modules', 'which')
1059-
t.equals(whichPath, fs.realpathSync(whichPath))
1059+
t.equal(whichPath, fs.realpathSync(whichPath))
10601060
})
10611061

10621062
tap.test('adding a dependency', async t => {

0 commit comments

Comments
 (0)
Please sign in to comment.