aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-05-30 16:12:54 +0800
committerGitHub <noreply@github.com>2017-05-30 16:12:54 +0800
commit1f6ed77f4700229fe5d667cd352e74a0c4e4c3c4 (patch)
treed9c530edeffe1eda3ec559184e442efc03792cd9 /package.json
parentc9111aea382806db1b2ed64f0e075e4193ceb63a (diff)
parentec379cc3504ff0f6e8a6213bbb79fbd60734e993 (diff)
downloaddexon-sol-tools-1f6ed77f4700229fe5d667cd352e74a0c4e4c3c4.tar
dexon-sol-tools-1f6ed77f4700229fe5d667cd352e74a0c4e4c3c4.tar.gz
dexon-sol-tools-1f6ed77f4700229fe5d667cd352e74a0c4e4c3c4.tar.bz2
dexon-sol-tools-1f6ed77f4700229fe5d667cd352e74a0c4e4c3c4.tar.lz
dexon-sol-tools-1f6ed77f4700229fe5d667cd352e74a0c4e4c3c4.tar.xz
dexon-sol-tools-1f6ed77f4700229fe5d667cd352e74a0c4e4c3c4.tar.zst
dexon-sol-tools-1f6ed77f4700229fe5d667cd352e74a0c4e4c3c4.zip
Merge pull request #20 from 0xProject/removeSrcFilesNotUsedByTests
Allow tests to access schemas, utils and types
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
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": {