@yao-pkg/pkg 5.11.3 → 5.11.5

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.
@@ -1,3 +1,7 @@
1
1
  'use strict';
2
2
 
3
- module.exports = {};
3
+ module.exports = {
4
+ pkg: {
5
+ assets: ['build/Release/*.node'],
6
+ },
7
+ };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ pkg: {
5
+ scripts: ['lib/worker.js'],
6
+ },
7
+ };
@@ -133,6 +133,9 @@ function nativePrebuildInstall(target, nodeFile) {
133
133
  // TODO: consider target node version and supported n-api version
134
134
  options.push('--target', nodeVersion);
135
135
  }
136
+ else {
137
+ options.push('--runtime', 'napi');
138
+ }
136
139
  // run prebuild
137
140
  (0, child_process_1.execFileSync)(prebuildInstall, options, { cwd: dir });
138
141
  // move the prebuild to a new name with a platform/version extension
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yao-pkg/pkg",
3
- "version": "5.11.3",
3
+ "version": "5.11.5",
4
4
  "description": "Package your Node.js project into an executable",
5
5
  "main": "lib-es5/index.js",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "@babel/generator": "7.23.0",
26
26
  "@babel/parser": "7.23.0",
27
27
  "@babel/types": "7.23.0",
28
- "@yao-pkg/pkg-fetch": "3.5.8",
28
+ "@yao-pkg/pkg-fetch": "3.5.9",
29
29
  "chalk": "^4.1.2",
30
30
  "fs-extra": "^9.1.0",
31
31
  "globby": "^11.1.0",
@@ -74,10 +74,10 @@
74
74
  "fix": "npm run lint:style -- -w && npm run lint:code -- --fix",
75
75
  "prepare": "npm run build",
76
76
  "prepublishOnly": "npm run lint",
77
- "test": "npm run build && npm run test:18 && npm run test:16 && npm run test:14 && npm run test:host",
77
+ "test": "npm run build && npm run test:18 && npm run test:16 && npm run test:host",
78
+ "test:20": "node test/test.js node20 no-npm",
78
79
  "test:18": "node test/test.js node18 no-npm",
79
80
  "test:16": "node test/test.js node16 no-npm",
80
- "test:14": "node test/test.js node14 no-npm",
81
81
  "test:host": "node test/test.js host only-npm",
82
82
  "release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it"
83
83
  },