From 868de78e07dd2f4109e8b933f8288f096ddc48fd Mon Sep 17 00:00:00 2001 From: Tamas Erdos Date: Tue, 26 May 2020 08:51:12 -0400 Subject: [PATCH 1/2] prepublish npm script to prepare /dist --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0b850e7..72296c5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "buildUmd": "parcel build src/index.js --target browser --out-file chart.xkcd.min.js --no-source-maps --experimental-scope-hoisting --global chartXkcd", "build": "parcel build src/index.js --target node --bundle-node-modules --no-source-maps --experimental-scope-hoisting", "start": "parcel examples/example.html", - "prepublishOnly": "rm -rf dist && npm run buildUmd && npm run build", + "prepublish": "rm -rf dist && npm run buildUmd && npm run build", "genDoc": "~/go/bin/static-docs --in docs --out docs-dist --title Chart.xkcd --subtitle 'xkcd styled chart lib'", "genExample": "parcel build examples/example.html --out-dir docs-dist --public-url /chart.xkcd", "deployDoc": "npm run genDoc && npm run genExample && gh-pages -d docs-dist", From 345ad0abfc75b6d2289f1c3380bc9734896f80f2 Mon Sep 17 00:00:00 2001 From: Tamas Erdos Date: Tue, 26 May 2020 09:08:13 -0400 Subject: [PATCH 2/2] publish didnt work, trying prepare --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 72296c5..9fe679f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "buildUmd": "parcel build src/index.js --target browser --out-file chart.xkcd.min.js --no-source-maps --experimental-scope-hoisting --global chartXkcd", "build": "parcel build src/index.js --target node --bundle-node-modules --no-source-maps --experimental-scope-hoisting", "start": "parcel examples/example.html", - "prepublish": "rm -rf dist && npm run buildUmd && npm run build", + "prepare": "rm -rf dist && npm run buildUmd && npm run build", "genDoc": "~/go/bin/static-docs --in docs --out docs-dist --title Chart.xkcd --subtitle 'xkcd styled chart lib'", "genExample": "parcel build examples/example.html --out-dir docs-dist --public-url /chart.xkcd", "deployDoc": "npm run genDoc && npm run genExample && gh-pages -d docs-dist",