From 38fcb702ecb8440bb61389d821dd36569e03e8c5 Mon Sep 17 00:00:00 2001 From: Christoph Tavan Date: Thu, 16 Jan 2020 13:10:35 +0100 Subject: [PATCH] chore: rename package script to build "build" seems to be the more appropriate term for what we're doing here. Part of #343. --- README_js.md | 4 ++-- package.json | 6 +++--- scripts/{package.sh => build.sh} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename scripts/{package.sh => build.sh} (100%) diff --git a/README_js.md b/README_js.md index dc670268..9845d925 100644 --- a/README_js.md +++ b/README_js.md @@ -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 diff --git a/package.json b/package.json index 7740897a..696168fc 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/scripts/package.sh b/scripts/build.sh similarity index 100% rename from scripts/package.sh rename to scripts/build.sh