diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-05 21:38:40 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-05 21:38:40 +0800 |
commit | 25f62daf146895a1e0e0c966166f08f28467ae2e (patch) | |
tree | 6366e90b21d8aa4198c8719f005b4e2e51f26fa3 /packages/0x.js/package.json | |
parent | 44a736c53b8901ee36dbe009ad570930bbc8e676 (diff) | |
download | dexon-0x-contracts-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.gz dexon-0x-contracts-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.zst dexon-0x-contracts-25f62daf146895a1e0e0c966166f08f28467ae2e.zip |
- Rename watch to watch_without_deps in sub-packages, so dev's don't confuse running watch from root dir, with sub-package dir
- stop using special prebuild script name and run pre_build steps for `watch` and `build` commands
- Remove `clean` step from `build`/`watch`
Diffstat (limited to 'packages/0x.js/package.json')
-rw-r--r-- | packages/0x.js/package.json | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/0x.js/package.json b/packages/0x.js/package.json index 4de046a07..b8d699795 100644 --- a/packages/0x.js/package.json +++ b/packages/0x.js/package.json @@ -15,9 +15,10 @@ "main": "lib/src/index.js", "types": "lib/src/index.d.ts", "scripts": { - "watch": "tsc -w", - "prebuild": "run-s clean generate_contract_wrappers", - "build": "tsc && copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/src/compact_artifacts && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts", + "watch_without_deps": "yarn pre_build && tsc -w", + "build": "yarn pre_build && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts", + "pre_build": "run-s generate_contract_wrappers copy_artifacts", + "copy_artifacts": "copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/src/compact_artifacts", "generate_contract_wrappers": "abi-gen --abis 'src/compact_artifacts/@(Exchange|Token|TokenTransferProxy|EtherToken|TokenRegistry|DummyToken).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers/generated --backend ethers && prettier --write 'src/contract_wrappers/generated/**.ts'", "lint": "tslint --project .", "test:circleci": "run-s test:coverage", |