@gibme/depupdate 0.0.5 → 0.0.6
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.
- package/LICENSE +19 -19
- package/cli.js +3 -3
- package/dist/index.js +77 -44
- package/dist/index.js.map +1 -1
- package/package.json +59 -59
package/LICENSE
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
Copyright (c) 2016-2022 Brandon Lehmann
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
-
in the Software without restriction, including without limitation the rights
|
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
|
11
|
-
copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
-
SOFTWARE.
|
|
1
|
+
Copyright (c) 2016-2022 Brandon Lehmann
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
require('./dist/index');
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
require('./dist/index');
|
package/dist/index.js
CHANGED
|
@@ -44,6 +44,22 @@ const run = (cmd) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
+
const standardDevDependencies = [
|
|
48
|
+
'@types/mocha',
|
|
49
|
+
'@types/node',
|
|
50
|
+
'@typescript-eslint/eslint-plugin',
|
|
51
|
+
'@typescript-eslint/parser',
|
|
52
|
+
'eslint',
|
|
53
|
+
'eslint-config-standard',
|
|
54
|
+
'eslint-plugin-import',
|
|
55
|
+
'eslint-plugin-n',
|
|
56
|
+
'eslint-plugin-node',
|
|
57
|
+
'eslint-plugin-promise',
|
|
58
|
+
'mocha',
|
|
59
|
+
'ts-node',
|
|
60
|
+
'typedoc',
|
|
61
|
+
'typescript'
|
|
62
|
+
];
|
|
47
63
|
const format_dep = (dependencies, latest = false) => (latest ? dependencies.map(dep => `${dep}@latest`) : dependencies)
|
|
48
64
|
.join(' ');
|
|
49
65
|
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -52,6 +68,8 @@ const format_dep = (dependencies, latest = false) => (latest ? dependencies.map(
|
|
|
52
68
|
const is_npm = (0, fs_1.existsSync)((0, path_1.resolve)(cwd, './package-lock.json'));
|
|
53
69
|
const latest = process.argv.map(e => e.toLowerCase().trim())
|
|
54
70
|
.includes('latest');
|
|
71
|
+
const setup = process.argv.map(e => e.toLowerCase().trim())
|
|
72
|
+
.includes('setup');
|
|
55
73
|
const config = require((0, path_1.resolve)(cwd, './package.json'));
|
|
56
74
|
const dependencies = Object.keys((_b = config.dependencies) !== null && _b !== void 0 ? _b : []);
|
|
57
75
|
const devDependencies = Object.keys((_c = config.devDependencies) !== null && _c !== void 0 ? _c : []);
|
|
@@ -74,65 +92,80 @@ const format_dep = (dependencies, latest = false) => (latest ? dependencies.map(
|
|
|
74
92
|
else if (is_yarn) {
|
|
75
93
|
logger_1.default.warn('Yarn detected...');
|
|
76
94
|
}
|
|
77
|
-
else {
|
|
95
|
+
else if (!setup) {
|
|
78
96
|
logger_1.default.error('Cannot detect package management system');
|
|
79
97
|
return process.exit(1);
|
|
80
98
|
}
|
|
81
|
-
if (
|
|
82
|
-
logger_1.default.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
logger_1.default.warn('Set to update all dependencies to latest version within the rules in package.json...');
|
|
86
|
-
}
|
|
87
|
-
if (!is_yarn) {
|
|
88
|
-
if (dependencies.length !== 0) {
|
|
89
|
-
logger_1.default.info('Updating %s dependencies...', dependencies.length);
|
|
90
|
-
const [stdout] = yield run(`${cmd} ${format_dep(dependencies, latest)}`);
|
|
99
|
+
if (setup) {
|
|
100
|
+
logger_1.default.info('Setting up standard development dependencies...');
|
|
101
|
+
if (is_npm) {
|
|
102
|
+
const [stdout] = yield run(`npm install --save --dev ${format_dep(standardDevDependencies, latest)}`);
|
|
91
103
|
stdout.split('\n')
|
|
92
104
|
.map(line => logger_1.default.debug(line));
|
|
93
105
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const [stdout] = yield run(`${cmd} --dev ${format_dep(devDependencies, latest)}`);
|
|
106
|
+
else {
|
|
107
|
+
const [stdout] = yield run(`yarn add --dev ${format_dep(standardDevDependencies, latest)}`);
|
|
97
108
|
stdout.split('\n')
|
|
98
109
|
.map(line => logger_1.default.debug(line));
|
|
99
110
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
if (latest) {
|
|
114
|
+
logger_1.default.warn('Set to update all dependencies to the latest version...');
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
logger_1.default.warn('Set to update all dependencies to latest version within the rules in package.json...');
|
|
118
|
+
}
|
|
119
|
+
if (!is_yarn) {
|
|
120
|
+
if (dependencies.length !== 0) {
|
|
121
|
+
logger_1.default.info('Updating %s dependencies...', dependencies.length);
|
|
122
|
+
const [stdout] = yield run(`${cmd} ${format_dep(dependencies, latest)}`);
|
|
123
|
+
stdout.split('\n')
|
|
124
|
+
.map(line => logger_1.default.debug(line));
|
|
125
|
+
}
|
|
126
|
+
if (devDependencies.length !== 0) {
|
|
127
|
+
logger_1.default.info('Updating %s development dependencies...', devDependencies.length);
|
|
128
|
+
const [stdout] = yield run(`${cmd} --dev ${format_dep(devDependencies, latest)}`);
|
|
129
|
+
stdout.split('\n')
|
|
130
|
+
.map(line => logger_1.default.debug(line));
|
|
131
|
+
}
|
|
132
|
+
if (peerDependencies.length !== 0) {
|
|
133
|
+
logger_1.default.info('Updating %s peer dependencies...', peerDependencies.length);
|
|
134
|
+
const [stdout] = yield run(`${cmd} --dev ${format_dep(peerDependencies, latest)}`);
|
|
135
|
+
stdout.split('\n')
|
|
136
|
+
.map(line => logger_1.default.debug(line));
|
|
137
|
+
}
|
|
138
|
+
if (optionalDependencies.length !== 0) {
|
|
139
|
+
logger_1.default.info('Updating %s dependencies...', optionalDependencies.length);
|
|
140
|
+
const [stdout] = yield run(`${cmd} ${format_dep(optionalDependencies, latest)}`);
|
|
141
|
+
stdout.split('\n')
|
|
142
|
+
.map(line => logger_1.default.debug(line));
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
logger_1.default.info('Updating %s dependencies', dependencies.length + devDependencies.length + peerDependencies.length + optionalDependencies.length);
|
|
147
|
+
const [stdout] = yield run(`${cmd} upgrade${latest ? ' --latest' : ''}`);
|
|
103
148
|
stdout.split('\n')
|
|
104
149
|
.map(line => logger_1.default.debug(line));
|
|
105
150
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const [stdout] = yield run(
|
|
151
|
+
logger_1.default.warn('Running audit checks...');
|
|
152
|
+
if (is_npm) {
|
|
153
|
+
const [stdout, stderr, error] = yield run('npm audit fix');
|
|
109
154
|
stdout.split('\n')
|
|
110
155
|
.map(line => logger_1.default.debug(line));
|
|
156
|
+
if (error || stderr.length !== 0) {
|
|
157
|
+
stderr.split('\n')
|
|
158
|
+
.map(line => logger_1.default.error(line));
|
|
159
|
+
}
|
|
111
160
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (is_npm) {
|
|
121
|
-
const [stdout, stderr, error] = yield run('npm audit fix');
|
|
122
|
-
stdout.split('\n')
|
|
123
|
-
.map(line => logger_1.default.debug(line));
|
|
124
|
-
if (error || stderr.length !== 0) {
|
|
125
|
-
stderr.split('\n')
|
|
126
|
-
.map(line => logger_1.default.error(line));
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
const [stdout, stderr, error] = yield run('yarn audit');
|
|
131
|
-
stdout.split('\n')
|
|
132
|
-
.map(line => logger_1.default.debug(line));
|
|
133
|
-
if (error || stderr.length !== 0) {
|
|
134
|
-
stderr.split('\n')
|
|
135
|
-
.map(line => logger_1.default.error(line));
|
|
161
|
+
else {
|
|
162
|
+
const [stdout, stderr, error] = yield run('yarn audit');
|
|
163
|
+
stdout.split('\n')
|
|
164
|
+
.map(line => logger_1.default.debug(line));
|
|
165
|
+
if (error || stderr.length !== 0) {
|
|
166
|
+
stderr.split('\n')
|
|
167
|
+
.map(line => logger_1.default.error(line));
|
|
168
|
+
}
|
|
136
169
|
}
|
|
137
170
|
}
|
|
138
171
|
}))();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;;;;;;;;;;;;;AAEZ,2BAAgC;AAChC,+BAA+B;AAC/B,iDAAqC;AACrC,2DAAmC;AAEnC,MAAM,GAAG,GAAG,MAAA,OAAO,CAAC,GAAG,EAAE,mCAAI,IAAI,CAAC;AAElC,MAAM,GAAG,GAAG,CAAO,GAAW,EAA2C,EAAE;IACvE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QACzB,IAAA,oBAAI,EAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;YAChC,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAA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AAI,CAAC,EAAE,CAAC,gBAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;aACxC;SACJ;KACJ;AACL,CAAC,CAAA,CAAC,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gibme/depupdate",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"bin": {
|
|
6
|
-
"depupdate": "cli.js"
|
|
7
|
-
},
|
|
8
|
-
"files": [
|
|
9
|
-
"dist/*",
|
|
10
|
-
"cli.js"
|
|
11
|
-
],
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "yarn build:typescript",
|
|
15
|
-
"build:docs": "./node_modules/.bin/typedoc",
|
|
16
|
-
"build:typescript": "./node_modules/.bin/tsc",
|
|
17
|
-
"test": "yarn test:style && yarn test:mocha",
|
|
18
|
-
"test:style": "yarn style",
|
|
19
|
-
"test:mocha": "./node_modules/.bin/mocha --exit --timeout 30000 --require ts-node/register test/test.ts",
|
|
20
|
-
"style": "./node_modules/.bin/eslint src/**/*.ts test/**/*.ts",
|
|
21
|
-
"fix-style": "./node_modules/.bin/eslint --fix src/**/*.ts test/**/*.ts",
|
|
22
|
-
"fix:style": "yarn fix-style",
|
|
23
|
-
"prepublishOnly": "yarn build"
|
|
24
|
-
},
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/depupdate/webpack.git"
|
|
28
|
-
},
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/gibme-npm/depupdate/issues"
|
|
31
|
-
},
|
|
32
|
-
"engines": {
|
|
33
|
-
"node": ">=16"
|
|
34
|
-
},
|
|
35
|
-
"engineStrict": true,
|
|
36
|
-
"author": {
|
|
37
|
-
"name": "Brandon Lehmann",
|
|
38
|
-
"email": "brandonlehmann@gmail.com"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"@gibme/logger": "^1.0.
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@types/mocha": "^10.0.0",
|
|
45
|
-
"@types/node": "^18.15.11",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
47
|
-
"@typescript-eslint/parser": "^5.42.0",
|
|
48
|
-
"eslint": "^8.26.0",
|
|
49
|
-
"eslint-config-standard": "^17.0.0",
|
|
50
|
-
"eslint-plugin-import": "^2.26.0",
|
|
51
|
-
"eslint-plugin-n": "^15.4.0",
|
|
52
|
-
"eslint-plugin-node": "^11.1.0",
|
|
53
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
54
|
-
"mocha": "^10.1.0",
|
|
55
|
-
"ts-node": "^10.9.1",
|
|
56
|
-
"typedoc": "^0.23.28",
|
|
57
|
-
"typescript": "^5.0.3"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@gibme/depupdate",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "Easily update package dependencies with a simple quick command",
|
|
5
|
+
"bin": {
|
|
6
|
+
"depupdate": "cli.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/*",
|
|
10
|
+
"cli.js"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "yarn build:typescript",
|
|
15
|
+
"build:docs": "./node_modules/.bin/typedoc",
|
|
16
|
+
"build:typescript": "./node_modules/.bin/tsc",
|
|
17
|
+
"test": "yarn test:style && yarn test:mocha",
|
|
18
|
+
"test:style": "yarn style",
|
|
19
|
+
"test:mocha": "./node_modules/.bin/mocha --exit --timeout 30000 --require ts-node/register test/test.ts",
|
|
20
|
+
"style": "./node_modules/.bin/eslint src/**/*.ts test/**/*.ts",
|
|
21
|
+
"fix-style": "./node_modules/.bin/eslint --fix src/**/*.ts test/**/*.ts",
|
|
22
|
+
"fix:style": "yarn fix-style",
|
|
23
|
+
"prepublishOnly": "yarn build"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/depupdate/webpack.git"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/gibme-npm/depupdate/issues"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=16"
|
|
34
|
+
},
|
|
35
|
+
"engineStrict": true,
|
|
36
|
+
"author": {
|
|
37
|
+
"name": "Brandon Lehmann",
|
|
38
|
+
"email": "brandonlehmann@gmail.com"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@gibme/logger": "^1.0.3"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/mocha": "^10.0.0",
|
|
45
|
+
"@types/node": "^18.15.11",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
47
|
+
"@typescript-eslint/parser": "^5.42.0",
|
|
48
|
+
"eslint": "^8.26.0",
|
|
49
|
+
"eslint-config-standard": "^17.0.0",
|
|
50
|
+
"eslint-plugin-import": "^2.26.0",
|
|
51
|
+
"eslint-plugin-n": "^15.4.0",
|
|
52
|
+
"eslint-plugin-node": "^11.1.0",
|
|
53
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
54
|
+
"mocha": "^10.1.0",
|
|
55
|
+
"ts-node": "^10.9.1",
|
|
56
|
+
"typedoc": "^0.23.28",
|
|
57
|
+
"typescript": "^5.0.3"
|
|
58
|
+
}
|
|
59
|
+
}
|