libnpmpack 5.0.0-pre.2 → 5.0.0-pre.4

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -21,7 +21,7 @@ async function pack (spec = 'file:.', opts = {}) {
21
21
 
22
22
  const stdio = opts.foregroundScripts ? 'inherit' : 'pipe'
23
23
 
24
- if (spec.type === 'directory') {
24
+ if (spec.type === 'directory' && !opts.ignoreScripts) {
25
25
  // prepack
26
26
  await runScript({
27
27
  ...opts,
@@ -48,7 +48,7 @@ async function pack (spec = 'file:.', opts = {}) {
48
48
  await writeFile(destination, tarball)
49
49
  }
50
50
 
51
- if (spec.type === 'directory') {
51
+ if (spec.type === 'directory' && !opts.ignoreScripts) {
52
52
  // postpack
53
53
  await runScript({
54
54
  ...opts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmpack",
3
- "version": "5.0.0-pre.2",
3
+ "version": "5.0.0-pre.4",
4
4
  "description": "Programmatic API for the bits behind npm pack",
5
5
  "author": "GitHub Inc.",
6
6
  "main": "lib/index.js",
@@ -22,8 +22,8 @@
22
22
  "template-oss-apply": "template-oss-apply --force"
23
23
  },
24
24
  "devDependencies": {
25
- "@npmcli/eslint-config": "^3.1.0",
26
- "@npmcli/template-oss": "4.5.0",
25
+ "@npmcli/eslint-config": "^4.0.0",
26
+ "@npmcli/template-oss": "4.6.2",
27
27
  "nock": "^13.0.7",
28
28
  "spawk": "^1.7.1",
29
29
  "tap": "^16.0.1"
@@ -36,17 +36,17 @@
36
36
  "bugs": "https://github.com/npm/libnpmpack/issues",
37
37
  "homepage": "https://npmjs.com/package/libnpmpack",
38
38
  "dependencies": {
39
- "@npmcli/arborist": "^6.0.0-pre.4",
40
- "@npmcli/run-script": "^4.1.3",
41
- "npm-package-arg": "^9.0.1",
42
- "pacote": "^14.0.0"
39
+ "@npmcli/arborist": "^6.0.0-pre.5",
40
+ "@npmcli/run-script": "^5.0.0",
41
+ "npm-package-arg": "^10.0.0",
42
+ "pacote": "^15.0.2"
43
43
  },
44
44
  "engines": {
45
45
  "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
46
46
  },
47
47
  "templateOSS": {
48
48
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
49
- "version": "4.5.0",
49
+ "version": "4.6.2",
50
50
  "content": "../../scripts/template-oss/index.js"
51
51
  },
52
52
  "tap": {