Skip to content

Commit

Permalink
fix: remove unnecessary package.json values (#6555)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys authored Jun 14, 2023
1 parent 3a7378d commit 40d7e09
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
},
"directories": {
"doc": "./doc",
"lib": "./lib",
"man": "./man"
},
"main": "./index.js",
Expand Down Expand Up @@ -213,14 +212,10 @@
"test-all": "node . run test -ws -iwr --if-present",
"snap": "tap",
"prepack": "node . run build -w docs",
"test:nocleanup": "NO_TEST_CLEANUP=1 node . run test --",
"sudotest": "sudo node . run run test --",
"sudotest:nocleanup": "sudo NO_TEST_CLEANUP=1 node . run test --",
"posttest": "node . run lint",
"lint": "eslint \"**/*.js\"",
"lintfix": "node . run lint -- --fix",
"lint-all": "node . run lint -ws -iwr --if-present",
"prelint": "rimraf test/npm_cache*",
"resetdeps": "node scripts/resetdeps.js",
"rp-pull-request": "node scripts/update-authors.js",
"postlint": "template-oss-check",
Expand All @@ -231,7 +226,6 @@
"LC_ALL=sk"
],
"color": 1,
"files": "test/{lib,bin,index.js}",
"timeout": 600,
"nyc-arg": [
"--exclude",
Expand Down
1 change: 0 additions & 1 deletion tap-snapshots/test/lib/commands/publish.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ Object {
"description": "a package manager for JavaScript",
"directories": Object {
"doc": "./doc",
"lib": "./lib",
"man": "./man",
},
"exports": Object {
Expand Down
8 changes: 1 addition & 7 deletions workspaces/arborist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,12 @@
"bin": {
"arborist": "bin/index.js"
},
"//": "sk test-env locale to catch locale-specific sorting",
"tap": {
"color": true,
"after": "test/fixtures/cleanup.js",
"test-env": [
"NODE_OPTIONS=--no-warnings",
"LC_ALL=sk"
],
"node-arg": [
"--no-warnings",
"--no-deprecation"
],
"color": 1,
"timeout": "360",
"nyc-arg": [
"--exclude",
Expand Down
12 changes: 6 additions & 6 deletions workspaces/arborist/test/isolated-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ tap.test('bundled dependencies of internal packages', async t => {
rule7.apply(t, dir, resolved, asserted)

const isexePath = path.join(dir, 'node_modules', 'isexe')
t.equals(isexePath, fs.realpathSync(isexePath))
t.equal(isexePath, fs.realpathSync(isexePath))
})

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

const isexePath = path.join(dir, 'node_modules', 'isexe')
t.equals(isexePath, fs.realpathSync(isexePath))
t.equal(isexePath, fs.realpathSync(isexePath))
})

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

const isexePath = path.join(dir, 'node_modules', 'isexe')
t.equals(isexePath, fs.realpathSync(isexePath))
t.equal(isexePath, fs.realpathSync(isexePath))
const whichPath = path.join(dir, 'node_modules', 'which')
t.equals(whichPath, fs.realpathSync(whichPath))
t.equal(whichPath, fs.realpathSync(whichPath))
})

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

const isexePath = path.join(dir, 'packages', 'bar', 'node_modules', 'isexe')
t.equals(isexePath, fs.realpathSync(isexePath))
t.equal(isexePath, fs.realpathSync(isexePath))
const whichPath = path.join(dir, 'packages', 'bar', 'node_modules', 'which')
t.equals(whichPath, fs.realpathSync(whichPath))
t.equal(whichPath, fs.realpathSync(whichPath))
})

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

0 comments on commit 40d7e09

Please sign in to comment.