mirror of
https://github.com/jwetzell/aas-js.git
synced 2026-08-10 07:03:38 +00:00
add pkg to cli
This commit is contained in:
Generated
+1462
-5
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,7 @@ const { SerialPort } = require('serialport');
|
||||
const { Console, Packets } = require('aas-lib');
|
||||
const { writeFileSync } = require('fs');
|
||||
const { program } = require('commander');
|
||||
|
||||
const packageInfo = require('./package.json');
|
||||
|
||||
program.name(packageInfo.name);
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
"main": "index.js",
|
||||
"bin": "index.js",
|
||||
"scripts": {
|
||||
"start": "node index.js"
|
||||
"start": "node index.js",
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "pkg ."
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
@@ -14,5 +16,20 @@
|
||||
"aas-lib": "^0.1.0",
|
||||
"commander": "^11.1.0",
|
||||
"serialport": "^12.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"pkg": "^5.8.1",
|
||||
"rimraf": "^5.0.5"
|
||||
},
|
||||
"pkg": {
|
||||
"assets": [
|
||||
"../../**/node_modules/@serialport/**/*.node"
|
||||
],
|
||||
"targets": [
|
||||
"node18-linux-x64",
|
||||
"node18-macos-x64",
|
||||
"node18-win-x64"
|
||||
],
|
||||
"outputPath": "dist"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user