Skip to content

Commit 5e71ed3

Browse files
Ability to install package from GitHub (#468)
* Ability to install package from GitHub Without the "prepare" rule, the TypeScript compile is not invoked when installing this package directly from GitHub. * Removing redundant build step
1 parent 89acd4c commit 5e71ed3

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

createReleaseTarball.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ echo
119119
############################
120120
# CREATE RELEASE TARBALL #
121121
############################
122-
echo "[INFO] Installing all node modules..."
122+
echo "[INFO] Installing and building all node modules..."
123123
npm install
124124
if [[ $? -ne 0 ]]; then
125125
echo "Error: Failed to install all node modules."
@@ -143,14 +143,6 @@ if [[ $? -ne 0 ]]; then
143143
fi
144144
echo
145145

146-
echo "[INFO] Building the release package contents..."
147-
npm run build
148-
if [[ $? -ne 0 ]]; then
149-
echo "Error: Failed to build release package contents."
150-
exit 1
151-
fi
152-
echo
153-
154146
echo "[INFO] Running integration tests..."
155147
npm run test:integration -- --updateRules
156148
if [[ $? -ne 0 ]]; then

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"scripts": {
1212
"build": "gulp build",
13+
"prepare": "npm run build",
1314
"lint": "run-p lint:src lint:unit lint:integration",
1415
"test": "run-s lint test:unit",
1516
"integration": "run-s build test:integration",

0 commit comments

Comments
 (0)