Skip to content

Commit 45fc15b

Browse files
committed
feat : add np for publishing automate
1 parent 4bfb375 commit 45fc15b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.np-config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"contents": "dist",
3+
}

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alertbox/docsify-footer",
3-
"version": "1.0.0",
3+
"version": "0.0.0",
44
"description": "A footer markdown plugin for magic documentation site generator, docsify.",
55
"jsdelivr": "dist/docsify-footer.min.js",
66
"unpkg": "dist/docsify-footer.min.js",
@@ -33,7 +33,7 @@
3333
"scripts": {
3434
"build": "yarn parcel build src/docsify-footer.js -o docsify-footer.min.js",
3535
"prepublish": "yarn build",
36-
"publish:pkg": "npx np"
36+
"release": "yarn prepublish && yarn np"
3737
},
3838
"files": [
3939
"dist",
@@ -51,7 +51,11 @@
5151
"eslint": "7.2.0",
5252
"eslint-plugin-import": "2.20.2",
5353
"esm": "3.2.25",
54-
"parcel-bundler": "1.12.4"
54+
"parcel-bundler": "1.12.4",
55+
"np": "6.2.4"
56+
},
57+
"publishConfig": {
58+
"access": "public"
5559
},
5660
"collective": {
5761
"url": "https://opencollective.com/alertbox"

0 commit comments

Comments
 (0)