@naturalcycles/dev-lib 13.38.4 → 13.39.0

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.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/bin/up.js ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const fs = require("node:fs");
5
+ const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
6
+ const script_1 = require("@naturalcycles/nodejs-lib/dist/script");
7
+ (0, script_1.runScript)(async () => {
8
+ (0, nodejs_lib_1.execVoidCommandSync)('yarn', ['upgrade']);
9
+ if (fs.existsSync(`node_modules/patch-package`)) {
10
+ (0, nodejs_lib_1.execVoidCommandSync)('patch-package');
11
+ }
12
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.38.4",
3
+ "version": "13.39.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -24,6 +24,7 @@
24
24
  "stylelint-all": "tsn ./src/bin/stylelint-all.ts",
25
25
  "lint-all": "tsn ./src/bin/lint-all.ts",
26
26
  "eslint-all": "tsn ./src/bin/eslint-all.ts",
27
+ "up": "tsn ./src/bin/up.ts",
27
28
  "eslint-print-config": "eslint --print-config src/index.ts > tmp/eslint.config.json",
28
29
  "update-from-dev-lib": "tsn ./src/bin/update-from-dev-lib.ts"
29
30
  },
@@ -92,6 +93,7 @@
92
93
  "test-manual": "dist/bin/test-manual.js",
93
94
  "tsc-prod": "dist/bin/tsc-prod.js",
94
95
  "tsc-scripts": "dist/bin/tsc-scripts.js",
96
+ "up": "dist/bin/up.js",
95
97
  "update-from-dev-lib": "dist/bin/update-from-dev-lib.js"
96
98
  },
97
99
  "engines": {
package/readme.md CHANGED
@@ -168,6 +168,8 @@ Install it **locally** in you project by adding
168
168
 
169
169
  #### Other commands
170
170
 
171
+ - `up`: shortcut for `yarn upgrade` && `yarn patch-package` (if `patch-package` exists in the
172
+ project).
171
173
  - `init-from-dev-lib`: copy config files from `dev-lib/cfg/init` to the project
172
174
  - `update-from-dev-lib`: copy config files from `dev-lib/cfg/overwrite` to the project
173
175