libnpmpack 3.0.0 → 3.0.1

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.
@@ -23,14 +23,14 @@ async function pack (spec = 'file:.', opts = {}) {
23
23
  path: spec.fetchSpec,
24
24
  stdio: 'inherit',
25
25
  pkg: manifest,
26
- banner
26
+ banner,
27
27
  })
28
28
  }
29
29
 
30
30
  // packs tarball
31
31
  const tarball = await pacote.tarball(manifest._resolved, {
32
32
  ...opts,
33
- integrity: manifest._integrity
33
+ integrity: manifest._integrity,
34
34
  })
35
35
 
36
36
  if (spec.type === 'directory') {
@@ -45,8 +45,8 @@ async function pack (spec = 'file:.', opts = {}) {
45
45
  env: {
46
46
  npm_package_from: tarball.from,
47
47
  npm_package_resolved: tarball.resolved,
48
- npm_package_integrity: tarball.integrity
49
- }
48
+ npm_package_integrity: tarball.integrity,
49
+ },
50
50
  })
51
51
  }
52
52
 
package/package.json CHANGED
@@ -1,31 +1,34 @@
1
1
  {
2
2
  "name": "libnpmpack",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Programmatic API for the bits behind npm pack",
5
- "author": "npm Inc. <support@npmjs.com>",
5
+ "author": "GitHub Inc.",
6
+ "main": "lib/index.js",
6
7
  "contributors": [
7
8
  "Claudia Hernández <claudia@npmjs.com>"
8
9
  ],
9
- "main": "index.js",
10
10
  "files": [
11
- "*.js"
11
+ "bin",
12
+ "lib"
12
13
  ],
13
14
  "license": "ISC",
14
15
  "scripts": {
15
16
  "preversion": "npm test",
16
17
  "postversion": "npm publish",
17
18
  "prepublishOnly": "git push origin --follow-tags",
18
- "lint": "standard",
19
+ "lint": "eslint '**/*.js'",
19
20
  "test": "tap",
20
- "posttest": "npm run lint"
21
+ "posttest": "npm run lint",
22
+ "postlint": "npm-template-check",
23
+ "lintfix": "npm run lint -- --fix",
24
+ "snap": "tap"
21
25
  },
22
26
  "tap": {
23
27
  "check-coverage": true
24
28
  },
25
29
  "devDependencies": {
26
30
  "nock": "^13.0.7",
27
- "standard": "^16.0.3",
28
- "tap": "^14.11.0"
31
+ "tap": "^15.0.0"
29
32
  },
30
33
  "repository": {
31
34
  "type": "git",
@@ -40,5 +43,8 @@
40
43
  },
41
44
  "engines": {
42
45
  "node": "^12.13.0 || ^14.15.0 || >=16"
46
+ },
47
+ "templateOSS": {
48
+ "version": "2.4.1"
43
49
  }
44
50
  }