@gibme/depupdate 0.0.5 → 0.0.9

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 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
@@ -37,26 +37,80 @@ const path_1 = require("path");
37
37
  const child_process_1 = require("child_process");
38
38
  const logger_1 = __importDefault(require("@gibme/logger"));
39
39
  const cwd = (_a = process.cwd()) !== null && _a !== void 0 ? _a : './';
40
+ const swd = (0, path_1.resolve)(__dirname);
40
41
  const run = (cmd) => __awaiter(void 0, void 0, void 0, function* () {
41
42
  return new Promise(resolve => {
42
43
  (0, child_process_1.exec)(cmd, (error, stdout, stderr) => {
44
+ stdout.split('\n')
45
+ .map(line => logger_1.default.debug(line));
43
46
  return resolve([stdout, stderr, error]);
44
47
  });
45
48
  });
46
49
  });
50
+ const runPrintErrors = (cmd) => __awaiter(void 0, void 0, void 0, function* () {
51
+ const [, stderr, error] = yield run(cmd);
52
+ if (error || stderr.length !== 0) {
53
+ stderr.split('\n')
54
+ .map(line => logger_1.default.error(line));
55
+ }
56
+ });
57
+ const standardDevDependencies = [
58
+ '@types/mocha',
59
+ '@types/node',
60
+ '@typescript-eslint/eslint-plugin',
61
+ '@typescript-eslint/parser',
62
+ 'eslint',
63
+ 'eslint-config-standard',
64
+ 'eslint-plugin-import',
65
+ 'eslint-plugin-n',
66
+ 'eslint-plugin-node',
67
+ 'eslint-plugin-promise',
68
+ 'mocha',
69
+ 'ts-node',
70
+ 'typedoc',
71
+ 'typescript'
72
+ ];
47
73
  const format_dep = (dependencies, latest = false) => (latest ? dependencies.map(dep => `${dep}@latest`) : dependencies)
48
74
  .join(' ');
49
75
  (() => __awaiter(void 0, void 0, void 0, function* () {
50
- var _b, _c, _d, _e;
76
+ var _b, _c, _d, _e, _f, _g;
51
77
  const is_yarn = (0, fs_1.existsSync)((0, path_1.resolve)(cwd, './yarn.lock'));
52
78
  const is_npm = (0, fs_1.existsSync)((0, path_1.resolve)(cwd, './package-lock.json'));
53
79
  const latest = process.argv.map(e => e.toLowerCase().trim())
54
80
  .includes('latest');
81
+ const setup = process.argv.map(e => e.toLowerCase().trim())
82
+ .includes('setup');
55
83
  const config = require((0, path_1.resolve)(cwd, './package.json'));
56
- const dependencies = Object.keys((_b = config.dependencies) !== null && _b !== void 0 ? _b : []);
57
- const devDependencies = Object.keys((_c = config.devDependencies) !== null && _c !== void 0 ? _c : []);
58
- const peerDependencies = Object.keys((_d = config.peerDependencies) !== null && _d !== void 0 ? _d : []);
59
- const optionalDependencies = Object.keys((_e = config.optionalDependencies) !== null && _e !== void 0 ? _e : []);
84
+ const dependencies = [
85
+ {
86
+ name: 'dependencies',
87
+ items: Object.keys((_b = config.dependencies) !== null && _b !== void 0 ? _b : []),
88
+ flags: {
89
+ npm: '--save'
90
+ }
91
+ },
92
+ {
93
+ name: 'development dependencies',
94
+ items: Object.keys((_c = config.devDependencies) !== null && _c !== void 0 ? _c : []),
95
+ flags: {
96
+ yarn: '--dev',
97
+ npm: '--save-dev'
98
+ }
99
+ },
100
+ {
101
+ name: 'peer dependencies',
102
+ items: Object.keys((_d = config.peerDependencies) !== null && _d !== void 0 ? _d : []),
103
+ flags: { yarn: '--peer' }
104
+ },
105
+ {
106
+ name: 'optional dependencies',
107
+ items: Object.keys((_e = config.optionalDependencies) !== null && _e !== void 0 ? _e : []),
108
+ flags: {
109
+ yarn: '--optional',
110
+ npm: '--save-optional'
111
+ }
112
+ }
113
+ ];
60
114
  let cmd = 'yarn';
61
115
  if (is_npm && is_yarn) {
62
116
  logger_1.default.error('Cannot run while both yarn.lock and package-lock.json both exist...');
@@ -64,75 +118,68 @@ const format_dep = (dependencies, latest = false) => (latest ? dependencies.map(
64
118
  }
65
119
  else if (is_npm) {
66
120
  logger_1.default.warn('NPM detected...');
67
- if (latest) {
68
- cmd = 'npm install --save';
69
- }
70
- else {
71
- cmd = 'npm update --save';
72
- }
121
+ cmd = 'npm install';
73
122
  }
74
123
  else if (is_yarn) {
75
124
  logger_1.default.warn('Yarn detected...');
125
+ if (!latest) {
126
+ cmd = 'yarn upgrade';
127
+ }
128
+ else {
129
+ cmd = 'yarn add';
130
+ }
76
131
  }
77
- else {
132
+ else if (!setup) {
78
133
  logger_1.default.error('Cannot detect package management system');
79
134
  return process.exit(1);
80
135
  }
81
- if (latest) {
82
- logger_1.default.warn('Set to update all dependencies to the latest version...');
136
+ for (const category of dependencies) {
137
+ if (category.items.length !== 0) {
138
+ logger_1.default.info('Found %s', category.name);
139
+ for (const dependency of category.items) {
140
+ logger_1.default.info('\t\t%s', dependency);
141
+ }
142
+ }
83
143
  }
84
- else {
85
- logger_1.default.warn('Set to update all dependencies to latest version within the rules in package.json...');
144
+ if (setup) {
145
+ logger_1.default.info('Setting up standard development dependencies...');
146
+ if (is_npm) {
147
+ yield run(`npm install --save --dev ${format_dep(standardDevDependencies, latest)}`);
148
+ }
149
+ else {
150
+ yield run(`yarn add --dev ${format_dep(standardDevDependencies, latest)}`);
151
+ }
86
152
  }
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)}`);
91
- stdout.split('\n')
92
- .map(line => logger_1.default.debug(line));
153
+ else {
154
+ if (latest) {
155
+ logger_1.default.warn('Set to update all dependencies to the latest version...');
93
156
  }
94
- if (devDependencies.length !== 0) {
95
- logger_1.default.info('Updating %s development dependencies...', devDependencies.length);
96
- const [stdout] = yield run(`${cmd} --dev ${format_dep(devDependencies, latest)}`);
97
- stdout.split('\n')
98
- .map(line => logger_1.default.debug(line));
157
+ else {
158
+ logger_1.default.warn('Set to update all dependencies to latest version within the rules in package.json...');
99
159
  }
100
- if (peerDependencies.length !== 0) {
101
- logger_1.default.info('Updating %s peer dependencies...', peerDependencies.length);
102
- const [stdout] = yield run(`${cmd} --dev ${format_dep(peerDependencies, latest)}`);
103
- stdout.split('\n')
104
- .map(line => logger_1.default.debug(line));
160
+ for (const category of dependencies) {
161
+ if (category.items.length === 0) {
162
+ continue;
163
+ }
164
+ const deps = format_dep(category.items, latest);
165
+ const command_line = `${cmd} ${is_yarn ? ((_f = category.flags) === null || _f === void 0 ? void 0 : _f.yarn) || '' : ((_g = category.flags) === null || _g === void 0 ? void 0 : _g.npm) || ''} ${deps}`;
166
+ logger_1.default.warn(command_line);
167
+ yield run(command_line);
105
168
  }
106
- if (optionalDependencies.length !== 0) {
107
- logger_1.default.info('Updating %s dependencies...', optionalDependencies.length);
108
- const [stdout] = yield run(`${cmd} ${format_dep(optionalDependencies, latest)}`);
109
- stdout.split('\n')
110
- .map(line => logger_1.default.debug(line));
169
+ logger_1.default.warn('Running audit checks...');
170
+ if (is_npm) {
171
+ yield runPrintErrors('npm audit');
111
172
  }
112
- }
113
- else {
114
- logger_1.default.info('Updating %s dependencies', dependencies.length + devDependencies.length + peerDependencies.length + optionalDependencies.length);
115
- const [stdout] = yield run(`${cmd} upgrade${latest ? ' --latest' : ''}`);
116
- stdout.split('\n')
117
- .map(line => logger_1.default.debug(line));
118
- }
119
- logger_1.default.warn('Running audit checks...');
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));
173
+ else {
174
+ yield runPrintErrors('yarn audit');
127
175
  }
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));
176
+ logger_1.default.warn('Attempting audit fixes...');
177
+ if (is_npm) {
178
+ yield runPrintErrors('npm audit fix');
179
+ }
180
+ else {
181
+ const cmd = (0, path_1.resolve)(`${swd}/../node_modules/.bin/yarn-audit-fix`);
182
+ yield runPrintErrors(cmd);
136
183
  }
137
184
  }
138
185
  }))();
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,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAA,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,YAAsB,EAAE,MAAM,GAAG,KAAK,EAAU,EAAE,CAClE,CAAC,MAAM,CAAC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GAAG,KAAI,EAAE,IAAI,IAAI,EAAE,CAAC;YAEzF,gBAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAE1B,MAAM,GAAG,CAAC,YAAY,CAAC,CAAC;SAC3B;QAED,gBAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAEvC,IAAI,MAAM,EAAE;YACR,MAAM,cAAc,CAAC,WAAW,CAAC,CAAC;SACrC;aAAM;YACH,MAAM,cAAc,CAAC,YAAY,CAAC,CAAC;SACtC;QAED,gBAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAEzC,IAAI,MAAM,EAAE;YACR,MAAM,cAAc,CAAC,eAAe,CAAC,CAAC;SACzC;aAAM;YACH,MAAM,GAAG,GAAG,IAAA,cAAO,EAAC,GAAG,GAAG,sCAAsC,CAAC,CAAC;YAClE,MAAM,cAAc,CAAC,GAAG,CAAC,CAAC;SAC7B;KACJ;AACL,CAAC,CAAA,CAAC,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,59 +1,61 @@
1
- {
2
- "name": "@gibme/depupdate",
3
- "version": "0.0.5",
4
- "description": "Webpack with a twist",
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.2"
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.9",
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:typecheck && yarn test:mocha",
18
+ "test:typecheck": "./node_modules/.bin/tsc --noEmit",
19
+ "test:style": "yarn style",
20
+ "test:mocha": "./node_modules/.bin/mocha --exit --timeout 30000 --require ts-node/register test/test.ts",
21
+ "style": "./node_modules/.bin/eslint src/**/*.ts test/**/*.ts",
22
+ "fix-style": "./node_modules/.bin/eslint --fix src/**/*.ts test/**/*.ts",
23
+ "fix:style": "yarn fix-style",
24
+ "prepublishOnly": "yarn build"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/depupdate/webpack.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/gibme-npm/depupdate/issues"
32
+ },
33
+ "engines": {
34
+ "node": ">=16"
35
+ },
36
+ "engineStrict": true,
37
+ "author": {
38
+ "name": "Brandon Lehmann",
39
+ "email": "brandonlehmann@gmail.com"
40
+ },
41
+ "dependencies": {
42
+ "@gibme/logger": "^1.0.4"
43
+ },
44
+ "devDependencies": {
45
+ "@types/mocha": "^10.0.1",
46
+ "@types/node": "^20.4.8",
47
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
48
+ "@typescript-eslint/parser": "^6.2.1",
49
+ "eslint": "^8.46.0",
50
+ "eslint-config-standard": "^17.1.0",
51
+ "eslint-plugin-import": "^2.28.0",
52
+ "eslint-plugin-n": "^16.0.1",
53
+ "eslint-plugin-node": "^11.1.0",
54
+ "eslint-plugin-promise": "^6.1.1",
55
+ "mocha": "^10.2.0",
56
+ "ts-node": "^10.9.1",
57
+ "typedoc": "^0.24.8",
58
+ "typescript": "^5.1.6",
59
+ "yarn-audit-fix": "^10.0.0"
60
+ }
61
+ }