npm-pkgbuild 13.4.0 → 14.0.0

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": "npm-pkgbuild",
3
- "version": "13.4.0",
3
+ "version": "14.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -45,9 +45,9 @@
45
45
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
46
46
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
47
47
  "docs": "documentation readme --section=API ./src/**/*.mjs",
48
- "lint": "npm run lint:docs && npm run lint:tsc",
48
+ "lint": "npm run lint:docs && npm run lint:typescript",
49
49
  "lint:docs": "documentation lint ./src/**/*.mjs",
50
- "lint:tsc": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
50
+ "lint:typescript": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
51
51
  "tsc:types": "tsc -d --allowJs --declarationDir dist --emitDeclarationOnly ./src/extract-from-package.mjs"
52
52
  },
53
53
  "dependencies": {
@@ -73,7 +73,7 @@
73
73
  "uti": "^8.4.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@types/node": "^20.11.24",
76
+ "@types/node": "^20.11.25",
77
77
  "ava": "^6.1.2",
78
78
  "c8": "^9.1.0",
79
79
  "documentation": "^14.0.3",
@@ -31,11 +31,6 @@ program
31
31
  Object.assign(former, Object.fromEntries([str.split(/=/)]))
32
32
  )
33
33
  .option("-p --dir <dir>", "which package to use", process.cwd())
34
- .option(
35
- "-a --available",
36
- "only execute availabe output/arch combintions",
37
- false
38
- )
39
34
  .option("--continue", "continue on error")
40
35
  .option(
41
36
  "-c --content <dir>",
@@ -75,7 +70,6 @@ program
75
70
  o => (options[o.name] === true || output[o.name] !== undefined) && options[o.name] !== false
76
71
  )) {
77
72
  if (
78
- options.available &&
79
73
  !(await outputFactory.prepare(options, variant))
80
74
  ) {
81
75
  console.warn(`output format ${outputFactory.name} not avaliable`);
@@ -57,7 +57,7 @@ export class DOCKER extends Packager {
57
57
  */
58
58
  static async prepare(options, variant) {
59
59
  try {
60
- await execa(this.constructor.name, ["--version"]);
60
+ await execa(this.name, ["--version"]);
61
61
  return true;
62
62
  } catch {}
63
63
 
@@ -166,12 +166,11 @@ export class DOCKER extends Packager {
166
166
  return image;
167
167
  }
168
168
 
169
- async publish(artifact, destination, properties,logger=console.log) {
170
-
169
+ async publish(artifact, destination, properties, logger = console.log) {
171
170
  const publish = analysePublish(destination, properties);
172
-
171
+
173
172
  logger(`Publishing to ${publish.url}`);
174
-
173
+
175
174
  const name = `${properties.name}:${properties.version}`;
176
175
  console.log(`docker tag ${artifact} ${publish.url}/${name}`);
177
176
  console.log(`docker push ${name}`);