@leverege/build-tools 2.5.45 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -105,7 +105,7 @@ const checkForLatest = async (pkg = '@leverege/build-tools') => {
|
|
|
105
105
|
|
|
106
106
|
try {
|
|
107
107
|
const list = await npmRegistryFetch.json(pkg, {
|
|
108
|
-
'//registry.npmjs.org/:
|
|
108
|
+
'//registry.npmjs.org/:_authToken': getToken()
|
|
109
109
|
});
|
|
110
110
|
return list['dist-tags'].latest;
|
|
111
111
|
} catch (err) {
|
|
Binary file
|
|
@@ -140,6 +140,19 @@ class Gitter {
|
|
|
140
140
|
});
|
|
141
141
|
await execa('npm', ['run', 'npm-check-updates'], {
|
|
142
142
|
stdio: 'inherit'
|
|
143
|
+
}); // setup husky
|
|
144
|
+
|
|
145
|
+
await execa('npm', ['install', 'husky', '--save-dev'], {
|
|
146
|
+
stdio: 'inherit'
|
|
147
|
+
});
|
|
148
|
+
await execa('npm', ['run', 'prepare'], {
|
|
149
|
+
stdio: 'inherit'
|
|
150
|
+
});
|
|
151
|
+
await execa('npx', ['husky', 'add', '.husky/pre-commit', 'unleash'], {
|
|
152
|
+
stdio: 'inherit'
|
|
153
|
+
});
|
|
154
|
+
await execa('npx', ['husky', 'add', '.husky/pre-push', 'unleash'], {
|
|
155
|
+
stdio: 'inherit'
|
|
143
156
|
});
|
|
144
157
|
}
|
|
145
158
|
|
package/lib/web/build-tools.js
CHANGED
|
@@ -105,7 +105,7 @@ const checkForLatest = async (pkg = '@leverege/build-tools') => {
|
|
|
105
105
|
|
|
106
106
|
try {
|
|
107
107
|
const list = await npmRegistryFetch.json(pkg, {
|
|
108
|
-
'//registry.npmjs.org/:
|
|
108
|
+
'//registry.npmjs.org/:_authToken': getToken()
|
|
109
109
|
});
|
|
110
110
|
return list['dist-tags'].latest;
|
|
111
111
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"simple-git": "^2.41.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@babel/cli": "^7.14.
|
|
78
|
-
"@babel/core": "^7.14.
|
|
77
|
+
"@babel/cli": "^7.14.8",
|
|
78
|
+
"@babel/core": "^7.14.8",
|
|
79
79
|
"@babel/node": "^7.14.7",
|
|
80
80
|
"@leverege/babel-preset-leverege-node": "^1.2.0",
|
|
81
81
|
"@leverege/eslint-config-leverege": "^3.0.0",
|
package/src/build-tools.js
CHANGED
|
@@ -96,7 +96,7 @@ const checkForLatest = async ( pkg = '@leverege/build-tools' ) => {
|
|
|
96
96
|
|
|
97
97
|
try {
|
|
98
98
|
const list = await npmRegistryFetch.json(
|
|
99
|
-
pkg, { '//registry.npmjs.org/:
|
|
99
|
+
pkg, { '//registry.npmjs.org/:_authToken': getToken() }
|
|
100
100
|
)
|
|
101
101
|
return list['dist-tags'].latest
|
|
102
102
|
} catch ( err ) {
|
package/src/dockreate
CHANGED
|
@@ -76,7 +76,7 @@ COPY ./.npmrc /usr/src/app/.npmrc
|
|
|
76
76
|
RUN apk --no-cache add curl git openssh-client && \
|
|
77
77
|
apk --update add --no-cache --virtual build-dep g++ gcc libgcc \\
|
|
78
78
|
libstdc++ linux-headers make python ${apkadds} && \
|
|
79
|
-
npm ci --production --silent
|
|
79
|
+
npm ci --only-production --ignore-scripts --silent \
|
|
80
80
|
rm -f /usr/src/app/.npmrc /root/.ssh/*
|
|
81
81
|
|
|
82
82
|
# --------------------------------------------------------------
|