chore: rename package script to build

"build" seems to be the more appropriate term for what we're doing here.

Part of #343.
This commit is contained in:
Christoph Tavan
2020-01-20 14:31:20 +01:00
parent 35f5238c78
commit 8682fba2b4
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -106,10 +106,10 @@ uuid(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
There is experimental native ESM support for [the browser](./examples/browser-esmodules/) but it
should not be considered ready for production use and may change or disappear in future releases.
To run the examples you must first build a dist package of this library in the module root:
To run the examples you must first create a dist build of this library in the module root:
```
npm run package
npm run build
```
## API
+2 -2
View File
@@ -115,10 +115,10 @@ uuid(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
There is experimental native ESM support for [the browser](./examples/browser-esmodules/) but it
should not be considered ready for production use and may change or disappear in future releases.
To run the examples you must first build a dist package of this library in the module root:
To run the examples you must first create a dist build of this library in the module root:
```
npm run package
npm run build
```
## API
+3 -3
View File
@@ -50,15 +50,15 @@
"eslint:check": "eslint src/ test/ examples/ *.js",
"eslint:fix": "eslint --fix src/ test/ examples/ *.js",
"test": "BABEL_ENV=commonjs jest test/unit/",
"pretest:browser": "npm run package && npm-run-all --parallel examples:**",
"pretest:browser": "npm run build && npm-run-all --parallel examples:**",
"test:browser": "BABEL_ENV=commonjs jest --forceExit --verbose test/browser/${BROWSER:-}*",
"prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
"prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
"ci": "npm run lint && npm run test && npm run prettier:check && npm run docs:diff",
"md": "runmd --watch --output=README.md README_js.md",
"docs": "( node --version | grep -q 'v12' ) && ( npm run package && runmd --output=README.md README_js.md )",
"docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )",
"docs:diff": "( node --version | grep -vq 'v12' ) || ( npm run docs && git diff --quiet README.md )",
"package": "./scripts/package.sh",
"build": "./scripts/build.sh",
"release": "standard-version"
},
"repository": {