diff --git a/.circleci/config.yml b/.circleci/config.yml index e2b3e656f33..18cf780dbfe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,7 +31,7 @@ jobs: command: npm ci --ignore-scripts - run: name: Run linting. - command: npm run lint + command: npm run ci:lint - run: name: Run NPM Security Audit command: npm run security diff --git a/LICENSE.md b/LICENSE.md index c6706dade6b..f4c3dad75aa 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -398,7 +398,7 @@ Repository: git://github.com/kamicane/require-relative.git ## rollup-pluginutils License: MIT By: Rich Harris -Repository: rollup/rollup-pluginutils +Repository: git+https://github.com/rollup/rollup-pluginutils.git --------------------------------------- diff --git a/package-lock.json b/package-lock.json index d591a79a939..ac71f29a75d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -245,9 +245,9 @@ "dev": true }, "@types/node": { - "version": "12.7.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.10.tgz", - "integrity": "sha512-ObiPa43kJCkgjG+7usRCoxWhqKCmT5JWvi+8bg54KMkP2CvTliYLmKR9uHLaz+51JDOX/8MjWc6Xz18xHTs7XQ==" + "version": "12.7.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.11.tgz", + "integrity": "sha512-Otxmr2rrZLKRYIybtdG/sgeO+tHY20GxeDjcGmUnmmlCWyEnv2a2x1ZXBo3BTec4OiTXMQCiazB8NMBf0iRlFw==" }, "@types/normalize-package-data": { "version": "2.4.0", @@ -1699,9 +1699,9 @@ "dev": true }, "execa": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/execa/-/execa-2.0.4.tgz", - "integrity": "sha512-VcQfhuGD51vQUQtKIq2fjGDLDbL6N1DTQVpYzxZ7LPIXw3HqTuIz6uxRmpV1qf8i31LHf2kjiaGI+GdHwRgbnQ==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/execa/-/execa-2.0.5.tgz", + "integrity": "sha512-SwmwZZyJjflcqLSgllk4EQlMLst2p9muyzwNugKGFlpAz6rZ7M+s2nBR97GAq4Vzjwx2y9rcMcmqzojwN+xwNA==", "dev": true, "requires": { "cross-spawn": "^6.0.5", @@ -5163,13 +5163,13 @@ } }, "rollup": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.22.0.tgz", - "integrity": "sha512-x4l4ZrV/Mr/x/jvFTmwROdEAhbZjx16yDRTVSKWh/i4oJDuW2dVEbECT853mybYCz7BAitU8ElGlhx7dNjw3qQ==", + "version": "1.23.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.23.0.tgz", + "integrity": "sha512-/p72Z3NbHWV+Vi1p2X+BmPA3WqlZxpUqCy6E8U4crMohZnI+j9Ob8ZAfFyNfddT0LxgnJM0olO4mg+noH4SFbg==", "dev": true, "requires": { "@types/estree": "*", - "@types/node": "*", + "@types/node": "^12.7.10", "acorn": "^7.1.0" } }, @@ -5935,9 +5935,9 @@ } }, "terser": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.3.4.tgz", - "integrity": "sha512-Kcrn3RiW8NtHBP0ssOAzwa2MsIRQ8lJWiBG/K7JgqPlomA3mtb2DEmp4/hrUA+Jujx+WZ02zqd7GYD+QRBB/2Q==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.3.6.tgz", + "integrity": "sha512-QQXGTgXT7zET9IbGSdRvExcL+rFZGiOxMDbPg1W0tc5gqbX6m7J6Eu0W3fQ2bK5Dks1WSvC2xAKOH+mzAuMLcg==", "dev": true, "requires": { "commander": "^2.20.0", diff --git a/package.json b/package.json index e9286a6ec6d..2e2c371ae8e 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "shx rm -rf dist && git rev-parse HEAD > .commithash && rollup -c && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup", "build:test": "shx rm -rf dist && rollup -c --configTest && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup", "build:bootstrap": "dist/bin/rollup -c && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup", - "ci:lint": "npm run lint:nofix && npm run security", + "ci:lint": "npm run lint:nofix", "ci:test": "npm run build:test && npm run build:bootstrap && npm run test:all", "ci:coverage": "npm run build:test && nyc --reporter lcovonly mocha && codecov", "lint": "npm run lint:ts -- --fix && npm run lint:js -- --fix && npm run lint:markdown", @@ -30,9 +30,10 @@ "pretest:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/", "security": "npm audit", "test": "npm run test:all", - "test:all": "npm run test:only && npm run test:typescript && npm run test:leak", + "test:all": "npm run test:only && npm run test:typescript && npm run test:leak && npm run test:package", "test:coverage": "nyc --reporter html mocha", "test:leak": "cross-os test:leak:os", + "test:package": "node scripts/test-package.js", "test:leak:os": { "darwin": "npm run test:leak:nix", "linux": "npm run test:leak:nix", @@ -64,7 +65,7 @@ "homepage": "https://github.com/rollup/rollup", "dependencies": { "@types/estree": "*", - "@types/node": "^12.7.10", + "@types/node": "*", "acorn": "^7.1.0" }, "devDependencies": { @@ -85,7 +86,7 @@ "es6-shim": "^0.35.5", "eslint": "^6.5.1", "eslint-plugin-import": "^2.18.2", - "execa": "^2.0.4", + "execa": "^2.0.5", "fixturify": "^1.2.0", "hash.js": "^1.1.7", "husky": "^3.0.8", @@ -104,7 +105,7 @@ "pretty-ms": "^5.0.0", "require-relative": "^0.8.7", "requirejs": "^2.3.6", - "rollup": "^1.22.0", + "rollup": "^1.23.0", "rollup-plugin-alias": "^2.0.1", "rollup-plugin-buble": "^0.19.8", "rollup-plugin-commonjs": "^10.1.0", @@ -123,7 +124,7 @@ "source-map-support": "^0.5.13", "sourcemap-codec": "^1.4.6", "systemjs": "^6.1.2", - "terser": "^4.3.4", + "terser": "^4.3.6", "tslib": "^1.10.0", "tslint": "^5.20.0", "turbocolor": "^2.6.1", diff --git a/scripts/test-package.js b/scripts/test-package.js new file mode 100644 index 00000000000..ad43213ae8e --- /dev/null +++ b/scripts/test-package.js @@ -0,0 +1,7 @@ +const pkg = require('../package.json'); + +for (const key of Object.keys((pkg.dependencies))) { + if (key.startsWith('@types') && pkg.dependencies[key] !== '*') { + throw new Error(`The dependency ${key} should have version range "*" but it was "${pkg.dependencies[key]}".`); + } +}