diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 05:21:38 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 05:21:38 +0800 |
commit | 6cb9bd4426bff5885f3b453d60a6a00f048abb6b (patch) | |
tree | c338d4ff9c4d3f2f5147058476c380cc4371c5ba /package.json | |
parent | 7b9e8777f1915191aaf28a83a86b4a35d74dd930 (diff) | |
download | dexon-sol-tools-6cb9bd4426bff5885f3b453d60a6a00f048abb6b.tar.gz dexon-sol-tools-6cb9bd4426bff5885f3b453d60a6a00f048abb6b.tar.zst dexon-sol-tools-6cb9bd4426bff5885f3b453d60a6a00f048abb6b.zip |
Instead of removing all files from ./lib/src for the UMD test, we leave the utils and schema folders as well as the types file since they are used by the test files
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json index 310ca4a8e..75a55b899 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "build:commonjs:dev": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;", "test:commonjs": "run-s build:commonjs:dev run_mocha", "pretest:umd": "run-s clean build:*:dev", - "substitute_umd_bundle": "shx rm -rf lib/src && shx mv _bundles lib/src", + "substitute_umd_bundle": "npm run remove_src_files_not_used_by_tests; shx mv _bundles/* lib/src", + "remove_src_files_not_used_by_tests": "find ./lib/src \\( -path ./lib/src/utils -o -path ./lib/src/schemas -o -path \"./lib/src/types.*\" \\) -prune -o -type f -print | xargs rm", "run_mocha": "mocha lib/test/**/*_test.js" }, "config": { |