mirror of
https://github.com/hanzoai/uuid.git
synced 2026-09-24 17:04:02 +00:00
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:
@@ -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
@@ -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
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user