Skip to content

Commit 457c1d5

Browse files
committed
chore: trigger prepare logic from npm scripts
1 parent 4713060 commit 457c1d5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Gruntfile.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,19 +233,20 @@ module.exports = function (grunt) {
233233
});
234234

235235
grunt.registerTask("test", ["ts:devall", "shell:npm_test"]);
236-
grunt.registerTask("pack", [
236+
grunt.registerTask("prepare", [
237237
"clean",
238238
"ts:release_build",
239239
"shell:npm_test",
240240

241241
"set_package_version",
242242
"set_live_ga_id",
243243
"verify_live_ga_id",
244-
"shell:build_package",
245244

246245
"copy:package_to_drop_folder",
247-
"copy:package_to_qa_drop_folder",
248-
"set_dev_ga_id"
246+
"copy:package_to_qa_drop_folder"
247+
]);
248+
grunt.registerTask("pack", [
249+
"shell:build_package"
249250
]);
250251
grunt.registerTask("lint", ["tslint:build"]);
251252
grunt.registerTask("all", ["clean", "test", "lint"]);

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"test": "node test-scripts/istanbul.js",
1515
"postinstall": "node postinstall.js",
1616
"preuninstall": "node preuninstall.js",
17+
"prepack": "grunt prepare",
18+
"postpack": "grunt set_dev_ga_id",
1719
"mocha": "node test-scripts/mocha.js",
1820
"tsc": "tsc",
1921
"tslint": "tslint -p tsconfig.json --type-check",

0 commit comments

Comments
 (0)