From eeeecad1046398fe84634c108bf8aac25de16d0c Mon Sep 17 00:00:00 2001 From: Owen Trueblood Date: Thu, 2 Nov 2023 18:32:03 -0400 Subject: [PATCH] Make it possible to use as NPM package --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5410475..83cd704 100644 --- a/package.json +++ b/package.json @@ -6,11 +6,14 @@ "repository": "git@github.com:jmpinit/p5.axidraw.git", "author": "Owen Trueblood ", "license": "MIT", + "main": "dist/p5.axidraw.js", "scripts": { "build": "node node_modules/webpack-cli/bin/cli.js --config webpack.prod.js", "watch": "node node_modules/webpack-cli/bin/cli.js watch --config webpack.dev.js", - "docs": "node node_modules/documentation/bin/documentation.js build -f html -o docs src/index.js" + "docs": "node node_modules/documentation/bin/documentation.js build -f html -o docs src/index.js", + "prepublishOnly": "yarn && yarn build" }, + "files": ["dist/"], "dependencies": { "ebb-control": "git+https://github.com/jmpinit/ebb-control.git#47e737aac4d898f6becabdb526c64876c12ad989" },