PKG-UP
A tool for @vercel/pkg with resedit support
Installation
Install with npm
npm install @tanishqmanuja/pkg-up
Install with yarn
yarn add @tanishqmanuja/pkg-up
Usage
-
Init
npx pkg-up init
OR
npx pkg-up i
-
Build (default config is pkg.config.json)
npx pkg-up build
OR
npx pkg-up b
-
Build with config
npx pkg-up build -c my.config.json
Example with package.json scripts
"scripts": {
"start": "node dist/index.js",
"start:dev": "ts-node src/index.ts",
"dev": "nodemon src/index/ts",
"build": "rimraf dist && rollup -c rollup.config.js",
"package": "npm run build && pkg-up b"
},
Sample Config File
{
"file": "dist/index.js",
"icon": "app.ico",
"name": "name",
"description": "description",
"company": "company",
"version": "1.0.0",
"copyright": "copyright",
"pkg": {
"targets": ["node16-win-x64"],
"outputPath": "bin",
"assets": [],
"cache": ".pkg-cache",
"compression": "gzip"
}
}
compression and cache properties are optional