diff --git a/package.json b/package.json index 5f44144..518e512 100755 --- a/package.json +++ b/package.json @@ -4,6 +4,28 @@ "description": "Immutability helpers with fast reads and acceptable writes", "main": "lib/timm.js", "types": "lib/timm.d.ts", + "scripts": { + "ava": "ava --watch", + "flow": "flow check || exit 0", + "lint": "eslint src/timm.js", + "test": "yarn testCovFull", + "testFast": "ava", + "testCovFast": "yarn testCovPrepare && yarn testCovDev && yarn testCovReport", + "testCovFull": "yarn testCovPrepare && yarn testCovDev && yarn testCovProd && yarn testCovMin && yarn testCovReport", + "testCovNoMin": "yarn testCovPrepare && yarn testCovDev && yarn testCovProd && yarn testCovReport", + "testCovPrepare": "rm -rf ./coverage .nyc_output .nyc_tmp && mkdir .nyc_tmp", + "testCovDev": "NODE_ENV=development nyc ava && mv .nyc_output/* .nyc_tmp/", + "testCovProd": "NODE_ENV=production nyc ava && mv .nyc_output/* .nyc_tmp/", + "testCovMin": "TEST_MINIFIED_LIB=1 nyc ava && mv .nyc_output/* .nyc_tmp/", + "testCovReport": "cp .nyc_tmp/* .nyc_output/ && nyc report --reporter=html --reporter=lcov", + "compile": "rm -rf ./lib && mkdir lib && babel -o lib/timm.js src/timm.js && cp src/api.js.flow lib/timm.js.flow && cp src/timm.d.ts lib/timm.d.ts", + "docs": "extract-docs --template docs/README_TEMPLATE.md --output README.md", + "uglify": "NODE_ENV=production envify lib/timm.js | uglifyjs - -o lib/timm.min.js --mangle --compress --comments \"/^!/\"", + "build": "yarn lint && yarn flow && yarn compile && yarn uglify && yarn testCovFull && yarn docs && yarn xxl", + "travis": "yarn compile && yarn testCovNoMin", + "xxl": "xxl", + "benchmarks": "coffee tools/benchmarks.coffee" + }, "dependencies": {}, "devDependencies": { "ava": "^0.25.0", @@ -30,32 +52,10 @@ "nyc": "^12.0.2", "oao": "^1.5.1", "prettier": "^1.14.2", - "seamless-immutable": "7.1.2", + "seamless-immutable": "^7.1.3", "uglifyjs": "^2.4.11", "xxl": "1.2.0" }, - "scripts": { - "ava": "ava --watch", - "flow": "flow check || exit 0", - "lint": "eslint src/timm.js", - "test": "yarn testCovFull", - "testFast": "ava", - "testCovFast": "yarn testCovPrepare && yarn testCovDev && yarn testCovReport", - "testCovFull": "yarn testCovPrepare && yarn testCovDev && yarn testCovProd && yarn testCovMin && yarn testCovReport", - "testCovNoMin": "yarn testCovPrepare && yarn testCovDev && yarn testCovProd && yarn testCovReport", - "testCovPrepare": "rm -rf ./coverage .nyc_output .nyc_tmp && mkdir .nyc_tmp", - "testCovDev": "NODE_ENV=development nyc ava && mv .nyc_output/* .nyc_tmp/", - "testCovProd": "NODE_ENV=production nyc ava && mv .nyc_output/* .nyc_tmp/", - "testCovMin": "TEST_MINIFIED_LIB=1 nyc ava && mv .nyc_output/* .nyc_tmp/", - "testCovReport": "cp .nyc_tmp/* .nyc_output/ && nyc report --reporter=html --reporter=lcov", - "compile": "rm -rf ./lib && mkdir lib && babel -o lib/timm.js src/timm.js && cp src/api.js.flow lib/timm.js.flow && cp src/timm.d.ts lib/timm.d.ts", - "docs": "extract-docs --template docs/README_TEMPLATE.md --output README.md", - "uglify": "NODE_ENV=production envify lib/timm.js | uglifyjs - -o lib/timm.min.js --mangle --compress --comments \"/^!/\"", - "build": "yarn lint && yarn flow && yarn compile && yarn uglify && yarn testCovFull && yarn docs && yarn xxl", - "travis": "yarn compile && yarn testCovNoMin", - "xxl": "xxl", - "benchmarks": "coffee tools/benchmarks.coffee" - }, "ava": { "files": [ "test/*.js" diff --git a/yarn.lock b/yarn.lock index 817fec7..cfba99e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4645,9 +4645,9 @@ safe-regex@^1.1.0: dependencies: ret "~0.1.10" -seamless-immutable@7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/seamless-immutable/-/seamless-immutable-7.1.2.tgz#c87a1eba6767a32455311d76600ac5eddeafbb69" +seamless-immutable@^7.1.3: + version "7.1.3" + resolved "https://registry.yarnpkg.com/seamless-immutable/-/seamless-immutable-7.1.3.tgz#d32a8a202a331dffa69e4069a367a2159252490e" semver-diff@^2.0.0: version "2.1.0"