From de0fe297ad33891c265ea3b560e558ee5b8cf321 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Tue, 26 Mar 2019 23:43:53 +0530 Subject: [PATCH 1/2] chore(opencollective): move opencolelctive to utils move opencollective to utils ISSUES CLOSED: #800 --- bin/cli.js | 2 +- bin/{ => utils}/opencollective.js | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename bin/{ => utils}/opencollective.js (100%) diff --git a/bin/cli.js b/bin/cli.js index aa7df4c2d9c..2c801863d27 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -321,7 +321,7 @@ For more information, see https://webpack.js.org/api/cli/.`); * Show a hint to donate to our Opencollective * once a week, only on Monday */ - const openCollectivePath = __dirname + "/opencollective.js"; + const openCollectivePath = __dirname + "/utils/opencollective.js"; const MONDAY = 1; const SIX_DAYS = 518400000; const now = new Date(); diff --git a/bin/opencollective.js b/bin/utils/opencollective.js similarity index 100% rename from bin/opencollective.js rename to bin/utils/opencollective.js From 8084e0a28930e9da0b43ebeac500bcaa7bdb8812 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Wed, 27 Mar 2019 00:04:47 +0530 Subject: [PATCH 2/2] chore(opencollective): update postinstall script path update postinstall script path ISSUES CLOSED: #800 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 06baa84f421..191a2fa01b6 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "format": "prettier-eslint ./bin/*.js ./test/**/*.js ./packages/**/*.js --write", "lint:codeOnly": "eslint \"{bin}/**/!(__testfixtures__)/*.js\" \"{bin}/**.js\"", "lint": "eslint \"./bin/*.js\" \"./test/**/*.js\" \"packages/**/!(node_modules)/*.test.js\"", - "postinstall": "node ./bin/opencollective.js", + "postinstall": "node ./bin/utils/opencollective.js", "pretest": "npm run build && npm run lint && npm run tslint", "reportCoverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json --disable=gcov", "test": "nyc jest --maxWorkers=4 --reporters=default --reporters=jest-junit",