From b13f2cfe81f82dbdfa08f9e81f78385cfb407133 Mon Sep 17 00:00:00 2001 From: segersniels Date: Mon, 4 Jul 2022 01:38:14 +0200 Subject: [PATCH] :green_heart: Target package.json so pkg config gets read --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7632745..c4cac31 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,15 @@ "files": [ "dist" ], + "pkg": { + "assets": "dist/*" + }, "scripts": { "compile:tsup": "tsup index.ts --clean --target node12 --minify --keep-names --out-dir dist && make copy", "compile:wasm": "make build", "compile": "yarn compile:wasm && yarn compile:tsup", - "build": "pkg dist/index.js --target node16 -o ./bin/supdock", - "build:ci": "pkg dist/index.js --targets node16-linux-x64,node16-macos-x64,node16-win-x64 --out-path ./bin", + "build": "pkg . --target node16 -o ./bin/supdock", + "build:ci": "pkg . --targets node16-linux-x64,node16-macos-x64,node16-win-x64 --out-path ./bin --", "lint": "eslint '**/*.{ts,tsx}'", "lint:fix": "eslint '**/*.{ts,tsx}' --fix", "check:typescript": "tsc --noEmit --skipLibCheck --project .",