Merge pull request #20 from 0xProject/removeSrcFilesNotUsedByTests
Allow tests to access schemas, utils and types
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user