From 852971b34a2c3e7b895e4f203f357602fe4fd7f1 Mon Sep 17 00:00:00 2001 From: Kathy Camenzind Date: Wed, 3 May 2023 10:46:46 -0400 Subject: [PATCH] Cleanup for publishing --- .gitignore | 1 + package.json | 6 +++++- src/phidget22-connect.html | 2 +- tsconfig.json | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f06235c..69694e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules dist +*.tgz diff --git a/package.json b/package.json index caf2b7e..915731e 100644 --- a/package.json +++ b/package.json @@ -17,11 +17,15 @@ "node-red", "phidgets" ], + "files": [ + "dist/*" + ], "scripts": { "build": "tsc --skipLibCheck && cp ./src/*.html ./dist/ && cp -r ./static ./dist/ && cp -r ./icons ./dist/", "clean": "rm -rf ./dist", "check": "npx prettier --check ./src/*", - "format": "npx prettier --write ./src/*" + "format": "npx prettier --write ./src/*", + "prepublish": "npm run check && npm run build" }, "author": "Michael Paradis", "contributors": ["Kathy Camenzind"], diff --git a/src/phidget22-connect.html b/src/phidget22-connect.html index 08adc23..1abe09e 100644 --- a/src/phidget22-connect.html +++ b/src/phidget22-connect.html @@ -7,7 +7,7 @@ port: { value: '5661', required: 'true' }, hostname: { value: 'localhost', required: 'true' }, debug: { value: false }, - retry: { value: false } + retry: { value: false }, }, inputs: 0, outputs: 1, diff --git a/tsconfig.json b/tsconfig.json index 07098bb..3c2b9a2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "rootDir": "src", "strict": true, "skipLibCheck": true, - "declaration": true + "declaration": false }, "include": [ "src/*.ts"