@yao-pkg/pkg 5.11.4 → 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.4",
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",