diff --git a/scripts/make-module b/scripts/make-module index f5c4f2a8f9..4791c08b04 100755 --- a/scripts/make-module +++ b/scripts/make-module @@ -51,17 +51,19 @@ cat << EOF > $MODULE/package.json "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all", "build:es6": "tsc --declaration", "build:test": "rimraf build && tsc -p test/tsconfig.json", - "test": "yarn build:test && mocha build/test/*.js", - "cover": "yarn build:test && nyc mocha build/test/*.js && nyc report --reporter=lcov", + "test": "mocha test", + "cover": "nyc mocha test && nyc report --reporter=lcov", "clean": "rimraf *.js *.d.ts .nyc_output build coverage doc lib", "doc": "node_modules/.bin/typedoc --mode modules --out doc src", "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { + "@istanbuljs/nyc-config-typescript": "^0.1.3", "@types/mocha": "^5.2.6", "@types/node": "^12.6.3", "mocha": "^6.1.4", "nyc": "^14.0.0", + "ts-node": "^8.5.2", "typedoc": "^0.15.0", "typescript": "^3.6.4" }, @@ -111,6 +113,7 @@ EOF echo "writing .npmignore..." cat << EOF > $MODULE/.npmignore +.ae .cache .meta .nyc_output