Skip to content

Commit

Permalink
build tweak + docfix
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolateboy committed Jul 11, 2019
1 parent 851ae06 commit f54d0bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ to the bottom of each file which points to an external source-map e.g.:
The following NPM scripts are available:

- build - compile the plugin and save it to the `dist` directory
- build:cjs: build the CommonJS target
- build:esm: build the ESM target
- clean - remove the `dist` directory and other build artifacts
- rebuild - clean the build artifacts and recompile the code
- test - clean, rebuild, and run the test suite
- test - rebuild the plugin and run the test suite
- test:debug - run the `test` script in debug mode, which dumps each transformed test case
- test:prod - run the test suite in production mode
- test - rebuild the plugin, and run the test suite
- test:run - run the test suite

</details>
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"main": "dist/index.js",
"module": "dist/index.esm.js",
"scripts": {
"build": "bili --format cjs src/index.js && shx cp src/index.js dist/index.esm.js",
"build": "run-s build:cjs build:esm",
"build:cjs": "bili --format cjs src/index.js",
"build:esm": "shx cp src/index.js dist/index.esm.js",
"clean": "shx rm -rf dist",
"prepublishOnly": "run-s test:prod",
"rebuild": "run-s clean build",
Expand Down

0 comments on commit f54d0bf

Please sign in to comment.