aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-05 21:38:40 +0800
committerFabio Berger <me@fabioberger.com>2018-06-05 21:38:40 +0800
commit25f62daf146895a1e0e0c966166f08f28467ae2e (patch)
tree6366e90b21d8aa4198c8719f005b4e2e51f26fa3 /packages/sol-cov
parent44a736c53b8901ee36dbe009ad570930bbc8e676 (diff)
downloaddexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.gz
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.bz2
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.lz
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.xz
dexon-sol-tools-25f62daf146895a1e0e0c966166f08f28467ae2e.tar.zst
dexon-sol-tools-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/sol-cov')
-rw-r--r--packages/sol-cov/package.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/sol-cov/package.json b/packages/sol-cov/package.json
index d10d277b9..60844e8ec 100644
--- a/packages/sol-cov/package.json
+++ b/packages/sol-cov/package.json
@@ -8,7 +8,9 @@
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"scripts": {
- "watch": "tsc -w",
+ "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 copy_test_fixtures",
"lint": "tslint --project .",
"test": "run-s compile_test run_mocha",
"rebuild-and-test": "run-s clean build test",
@@ -17,7 +19,7 @@
"test:circleci": "yarn test:coverage",
"run_mocha": "mocha lib/test/**/*_test.js --exit",
"clean": "shx rm -rf lib scripts test/fixtures/artifacts src/artifacts",
- "build": "copyfiles 'test/fixtures/**/*' ./lib && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
+ "copy_test_fixtures": "copyfiles 'test/fixtures/**/*' ./lib",
"compile_test": "sol-compiler compile",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js",
"docs:stage": "node scripts/stage_docs.js",