@icebreakers/monorepo 0.4.2 → 0.4.3
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/assets/.vscode/settings.json +85 -1
- package/assets/package.json +4 -2
- package/assets/scripts/monorepo/binaryMirror.ts +17 -0
- package/assets/scripts/monorepo/mirror/sources.ts +31 -0
- package/assets/scripts/monorepo/mirror/utils.ts +12 -0
- package/dist/{chunk-XBY6UJ4D.js → chunk-TVZYBZ3T.js} +10 -6
- package/dist/cli.cjs +11 -7
- package/dist/cli.js +2 -2
- package/dist/index.cjs +10 -6
- package/dist/index.js +1 -1
- package/package.json +3 -3
|
@@ -81,5 +81,89 @@
|
|
|
81
81
|
"vue",
|
|
82
82
|
"css",
|
|
83
83
|
"scss"
|
|
84
|
-
]
|
|
84
|
+
],
|
|
85
|
+
"terminal.integrated.env.linux": {
|
|
86
|
+
"COREPACK_NPM_REGISTRY": "https://registry.npmmirror.com",
|
|
87
|
+
"EDGEDRIVER_CDNURL": "https://npmmirror.com/mirrors/edgedriver",
|
|
88
|
+
"NODEJS_ORG_MIRROR": "https://cdn.npmmirror.com/binaries/node",
|
|
89
|
+
"NVM_NODEJS_ORG_MIRROR": "https://cdn.npmmirror.com/binaries/node",
|
|
90
|
+
"PHANTOMJS_CDNURL": "https://cdn.npmmirror.com/binaries/phantomjs",
|
|
91
|
+
"CHROMEDRIVER_CDNURL": "https://cdn.npmmirror.com/binaries/chromedriver",
|
|
92
|
+
"OPERADRIVER_CDNURL": "https://cdn.npmmirror.com/binaries/operadriver",
|
|
93
|
+
"CYPRESS_DOWNLOAD_PATH_TEMPLATE": "https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip",
|
|
94
|
+
"ELECTRON_MIRROR": "https://cdn.npmmirror.com/binaries/electron/",
|
|
95
|
+
"ELECTRON_BUILDER_BINARIES_MIRROR": "https://cdn.npmmirror.com/binaries/electron-builder-binaries/",
|
|
96
|
+
"SASS_BINARY_SITE": "https://cdn.npmmirror.com/binaries/node-sass",
|
|
97
|
+
"SWC_BINARY_SITE": "https://cdn.npmmirror.com/binaries/node-swc",
|
|
98
|
+
"NWJS_URLBASE": "https://cdn.npmmirror.com/binaries/nwjs/v",
|
|
99
|
+
"PUPPETEER_DOWNLOAD_HOST": "https://cdn.npmmirror.com/binaries/chrome-for-testing",
|
|
100
|
+
"PUPPETEER_DOWNLOAD_BASE_URL": "https://cdn.npmmirror.com/binaries/chrome-for-testing",
|
|
101
|
+
"PLAYWRIGHT_DOWNLOAD_HOST": "https://cdn.npmmirror.com/binaries/playwright",
|
|
102
|
+
"SENTRYCLI_CDNURL": "https://cdn.npmmirror.com/binaries/sentry-cli",
|
|
103
|
+
"SAUCECTL_INSTALL_BINARY_MIRROR": "https://cdn.npmmirror.com/binaries/saucectl",
|
|
104
|
+
"RE2_DOWNLOAD_MIRROR": "https://cdn.npmmirror.com/binaries/node-re2",
|
|
105
|
+
"RE2_DOWNLOAD_SKIP_PATH": "true",
|
|
106
|
+
"PRISMA_ENGINES_MIRROR": "https://cdn.npmmirror.com/binaries/prisma",
|
|
107
|
+
"npm_config_better_sqlite3_binary_host": "https://cdn.npmmirror.com/binaries/better-sqlite3",
|
|
108
|
+
"npm_config_keytar_binary_host": "https://cdn.npmmirror.com/binaries/keytar",
|
|
109
|
+
"npm_config_sharp_binary_host": "https://cdn.npmmirror.com/binaries/sharp",
|
|
110
|
+
"npm_config_sharp_libvips_binary_host": "https://cdn.npmmirror.com/binaries/sharp-libvips",
|
|
111
|
+
"npm_config_robotjs_binary_host": "https://cdn.npmmirror.com/binaries/robotjs"
|
|
112
|
+
},
|
|
113
|
+
"terminal.integrated.env.windows": {
|
|
114
|
+
"COREPACK_NPM_REGISTRY": "https://registry.npmmirror.com",
|
|
115
|
+
"EDGEDRIVER_CDNURL": "https://npmmirror.com/mirrors/edgedriver",
|
|
116
|
+
"NODEJS_ORG_MIRROR": "https://cdn.npmmirror.com/binaries/node",
|
|
117
|
+
"NVM_NODEJS_ORG_MIRROR": "https://cdn.npmmirror.com/binaries/node",
|
|
118
|
+
"PHANTOMJS_CDNURL": "https://cdn.npmmirror.com/binaries/phantomjs",
|
|
119
|
+
"CHROMEDRIVER_CDNURL": "https://cdn.npmmirror.com/binaries/chromedriver",
|
|
120
|
+
"OPERADRIVER_CDNURL": "https://cdn.npmmirror.com/binaries/operadriver",
|
|
121
|
+
"CYPRESS_DOWNLOAD_PATH_TEMPLATE": "https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip",
|
|
122
|
+
"ELECTRON_MIRROR": "https://cdn.npmmirror.com/binaries/electron/",
|
|
123
|
+
"ELECTRON_BUILDER_BINARIES_MIRROR": "https://cdn.npmmirror.com/binaries/electron-builder-binaries/",
|
|
124
|
+
"SASS_BINARY_SITE": "https://cdn.npmmirror.com/binaries/node-sass",
|
|
125
|
+
"SWC_BINARY_SITE": "https://cdn.npmmirror.com/binaries/node-swc",
|
|
126
|
+
"NWJS_URLBASE": "https://cdn.npmmirror.com/binaries/nwjs/v",
|
|
127
|
+
"PUPPETEER_DOWNLOAD_HOST": "https://cdn.npmmirror.com/binaries/chrome-for-testing",
|
|
128
|
+
"PUPPETEER_DOWNLOAD_BASE_URL": "https://cdn.npmmirror.com/binaries/chrome-for-testing",
|
|
129
|
+
"PLAYWRIGHT_DOWNLOAD_HOST": "https://cdn.npmmirror.com/binaries/playwright",
|
|
130
|
+
"SENTRYCLI_CDNURL": "https://cdn.npmmirror.com/binaries/sentry-cli",
|
|
131
|
+
"SAUCECTL_INSTALL_BINARY_MIRROR": "https://cdn.npmmirror.com/binaries/saucectl",
|
|
132
|
+
"RE2_DOWNLOAD_MIRROR": "https://cdn.npmmirror.com/binaries/node-re2",
|
|
133
|
+
"RE2_DOWNLOAD_SKIP_PATH": "true",
|
|
134
|
+
"PRISMA_ENGINES_MIRROR": "https://cdn.npmmirror.com/binaries/prisma",
|
|
135
|
+
"npm_config_better_sqlite3_binary_host": "https://cdn.npmmirror.com/binaries/better-sqlite3",
|
|
136
|
+
"npm_config_keytar_binary_host": "https://cdn.npmmirror.com/binaries/keytar",
|
|
137
|
+
"npm_config_sharp_binary_host": "https://cdn.npmmirror.com/binaries/sharp",
|
|
138
|
+
"npm_config_sharp_libvips_binary_host": "https://cdn.npmmirror.com/binaries/sharp-libvips",
|
|
139
|
+
"npm_config_robotjs_binary_host": "https://cdn.npmmirror.com/binaries/robotjs"
|
|
140
|
+
},
|
|
141
|
+
"terminal.integrated.env.osx": {
|
|
142
|
+
"COREPACK_NPM_REGISTRY": "https://registry.npmmirror.com",
|
|
143
|
+
"EDGEDRIVER_CDNURL": "https://npmmirror.com/mirrors/edgedriver",
|
|
144
|
+
"NODEJS_ORG_MIRROR": "https://cdn.npmmirror.com/binaries/node",
|
|
145
|
+
"NVM_NODEJS_ORG_MIRROR": "https://cdn.npmmirror.com/binaries/node",
|
|
146
|
+
"PHANTOMJS_CDNURL": "https://cdn.npmmirror.com/binaries/phantomjs",
|
|
147
|
+
"CHROMEDRIVER_CDNURL": "https://cdn.npmmirror.com/binaries/chromedriver",
|
|
148
|
+
"OPERADRIVER_CDNURL": "https://cdn.npmmirror.com/binaries/operadriver",
|
|
149
|
+
"CYPRESS_DOWNLOAD_PATH_TEMPLATE": "https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip",
|
|
150
|
+
"ELECTRON_MIRROR": "https://cdn.npmmirror.com/binaries/electron/",
|
|
151
|
+
"ELECTRON_BUILDER_BINARIES_MIRROR": "https://cdn.npmmirror.com/binaries/electron-builder-binaries/",
|
|
152
|
+
"SASS_BINARY_SITE": "https://cdn.npmmirror.com/binaries/node-sass",
|
|
153
|
+
"SWC_BINARY_SITE": "https://cdn.npmmirror.com/binaries/node-swc",
|
|
154
|
+
"NWJS_URLBASE": "https://cdn.npmmirror.com/binaries/nwjs/v",
|
|
155
|
+
"PUPPETEER_DOWNLOAD_HOST": "https://cdn.npmmirror.com/binaries/chrome-for-testing",
|
|
156
|
+
"PUPPETEER_DOWNLOAD_BASE_URL": "https://cdn.npmmirror.com/binaries/chrome-for-testing",
|
|
157
|
+
"PLAYWRIGHT_DOWNLOAD_HOST": "https://cdn.npmmirror.com/binaries/playwright",
|
|
158
|
+
"SENTRYCLI_CDNURL": "https://cdn.npmmirror.com/binaries/sentry-cli",
|
|
159
|
+
"SAUCECTL_INSTALL_BINARY_MIRROR": "https://cdn.npmmirror.com/binaries/saucectl",
|
|
160
|
+
"RE2_DOWNLOAD_MIRROR": "https://cdn.npmmirror.com/binaries/node-re2",
|
|
161
|
+
"RE2_DOWNLOAD_SKIP_PATH": "true",
|
|
162
|
+
"PRISMA_ENGINES_MIRROR": "https://cdn.npmmirror.com/binaries/prisma",
|
|
163
|
+
"npm_config_better_sqlite3_binary_host": "https://cdn.npmmirror.com/binaries/better-sqlite3",
|
|
164
|
+
"npm_config_keytar_binary_host": "https://cdn.npmmirror.com/binaries/keytar",
|
|
165
|
+
"npm_config_sharp_binary_host": "https://cdn.npmmirror.com/binaries/sharp",
|
|
166
|
+
"npm_config_sharp_libvips_binary_host": "https://cdn.npmmirror.com/binaries/sharp-libvips",
|
|
167
|
+
"npm_config_robotjs_binary_host": "https://cdn.npmmirror.com/binaries/robotjs"
|
|
168
|
+
}
|
|
85
169
|
}
|
package/assets/package.json
CHANGED
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"commit": "commit",
|
|
29
29
|
"script:init": "tsx scripts/monorepo/init.ts",
|
|
30
30
|
"script:sync": "tsx scripts/monorepo/sync.ts",
|
|
31
|
-
"script:clean": "tsx scripts/monorepo/clean.ts"
|
|
31
|
+
"script:clean": "tsx scripts/monorepo/clean.ts",
|
|
32
|
+
"script:mirror": "tsx scripts/monorepo/binaryMirror.ts"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@changesets/changelog-github": "^0.5.0",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"@commitlint/config-conventional": "^19.5.0",
|
|
38
39
|
"@commitlint/prompt-cli": "^19.5.0",
|
|
39
40
|
"@commitlint/types": "^19.5.0",
|
|
40
|
-
"@icebreakers/eslint-config": "^0.5.
|
|
41
|
+
"@icebreakers/eslint-config": "^0.5.1",
|
|
41
42
|
"@icebreakers/stylelint-config": "^0.0.3",
|
|
42
43
|
"@pnpm/workspace.find-packages": "^4.0.10",
|
|
43
44
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
"@types/set-value": "^4.0.3",
|
|
53
54
|
"@vitest/coverage-v8": "~2.0.5",
|
|
54
55
|
"ci-info": "^4.0.0",
|
|
56
|
+
"comment-json": "^4.2.5",
|
|
55
57
|
"cross-env": "^7.0.3",
|
|
56
58
|
"defu": "^6.1.4",
|
|
57
59
|
"eslint": "^9.10.0",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
2
|
+
import { parse, stringify } from 'comment-json'
|
|
3
|
+
import fs from 'fs-extra'
|
|
4
|
+
import path from 'pathe'
|
|
5
|
+
import { setMirror } from './mirror/utils'
|
|
6
|
+
|
|
7
|
+
const cwd = process.cwd()
|
|
8
|
+
|
|
9
|
+
const targetJsonPath = path.resolve(cwd, '.vscode/settings.json')
|
|
10
|
+
|
|
11
|
+
await fs.ensureFile(targetJsonPath)
|
|
12
|
+
|
|
13
|
+
const json = parse(await fs.readFile(targetJsonPath, 'utf8'), undefined, false)
|
|
14
|
+
|
|
15
|
+
json && typeof json === 'object' && setMirror(json)
|
|
16
|
+
|
|
17
|
+
await fs.writeFile(targetJsonPath, `${stringify(json, undefined, 2)}\n`, 'utf8')
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
// https://github.com/cnpm/binary-mirror-config/blob/master/package.json
|
|
3
|
+
|
|
4
|
+
export const chinaMirrorsEnvs = {
|
|
5
|
+
COREPACK_NPM_REGISTRY: 'https://registry.npmmirror.com',
|
|
6
|
+
EDGEDRIVER_CDNURL: 'https://npmmirror.com/mirrors/edgedriver',
|
|
7
|
+
NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
|
|
8
|
+
NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
|
|
9
|
+
PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs',
|
|
10
|
+
CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver',
|
|
11
|
+
OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver',
|
|
12
|
+
CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip',
|
|
13
|
+
ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/',
|
|
14
|
+
ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/',
|
|
15
|
+
SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass',
|
|
16
|
+
SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc',
|
|
17
|
+
NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v',
|
|
18
|
+
PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
|
|
19
|
+
PUPPETEER_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
|
|
20
|
+
PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright',
|
|
21
|
+
SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli',
|
|
22
|
+
SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl',
|
|
23
|
+
RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2',
|
|
24
|
+
RE2_DOWNLOAD_SKIP_PATH: 'true',
|
|
25
|
+
PRISMA_ENGINES_MIRROR: 'https://cdn.npmmirror.com/binaries/prisma',
|
|
26
|
+
npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3',
|
|
27
|
+
npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar',
|
|
28
|
+
npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp',
|
|
29
|
+
npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
|
|
30
|
+
npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs',
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import set from 'set-value'
|
|
2
|
+
import { chinaMirrorsEnvs } from './sources'
|
|
3
|
+
|
|
4
|
+
export function setMirror(obj: object) {
|
|
5
|
+
const platforms = ['linux', 'windows', 'osx']
|
|
6
|
+
const prefix = 'terminal.integrated.env'
|
|
7
|
+
if (typeof obj === 'object' && obj) {
|
|
8
|
+
for (const platform of platforms) {
|
|
9
|
+
set(obj, [prefix, platform].join('.').replaceAll('.', '\\.'), chinaMirrorsEnvs)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -394,6 +394,16 @@ function isFileChanged(src, dest) {
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
+
// src/scripts.ts
|
|
398
|
+
init_esm_shims();
|
|
399
|
+
var scripts = {
|
|
400
|
+
"script:init": "tsx scripts/monorepo/init.ts",
|
|
401
|
+
"script:sync": "tsx scripts/monorepo/sync.ts",
|
|
402
|
+
"script:clean": "tsx scripts/monorepo/clean.ts",
|
|
403
|
+
"script:mirror": "tsx scripts/monorepo/binaryMirror.ts"
|
|
404
|
+
};
|
|
405
|
+
var scriptsEntries = Object.entries(scripts);
|
|
406
|
+
|
|
397
407
|
// src/targets.ts
|
|
398
408
|
init_esm_shims();
|
|
399
409
|
function getTargets(raw) {
|
|
@@ -450,12 +460,6 @@ var __filename2 = fileURLToPath(import.meta.url);
|
|
|
450
460
|
var __dirname2 = path.dirname(__filename2);
|
|
451
461
|
var assetsDir = path.join(__dirname2, "../assets");
|
|
452
462
|
var cwd = process.cwd();
|
|
453
|
-
var scripts = {
|
|
454
|
-
"script:init": "tsx scripts/monorepo/init.ts",
|
|
455
|
-
"script:sync": "tsx scripts/monorepo/sync.ts",
|
|
456
|
-
"script:clean": "tsx scripts/monorepo/clean.ts"
|
|
457
|
-
};
|
|
458
|
-
var scriptsEntries = Object.entries(scripts);
|
|
459
463
|
function setPkgJson(sourcePkgJson, targetPkgJson) {
|
|
460
464
|
const packageManager = (0, import_get_value2.default)(sourcePkgJson, "packageManager", { default: "" });
|
|
461
465
|
const deps = (0, import_get_value2.default)(sourcePkgJson, "dependencies", { default: {} });
|
package/dist/cli.cjs
CHANGED
|
@@ -316,7 +316,7 @@ var import_commander = require("commander");
|
|
|
316
316
|
|
|
317
317
|
// package.json
|
|
318
318
|
var name = "@icebreakers/monorepo";
|
|
319
|
-
var version = "0.4.
|
|
319
|
+
var version = "0.4.3";
|
|
320
320
|
|
|
321
321
|
// src/lib.ts
|
|
322
322
|
init_cjs_shims();
|
|
@@ -406,6 +406,16 @@ function isFileChanged(src, dest) {
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
+
// src/scripts.ts
|
|
410
|
+
init_cjs_shims();
|
|
411
|
+
var scripts = {
|
|
412
|
+
"script:init": "tsx scripts/monorepo/init.ts",
|
|
413
|
+
"script:sync": "tsx scripts/monorepo/sync.ts",
|
|
414
|
+
"script:clean": "tsx scripts/monorepo/clean.ts",
|
|
415
|
+
"script:mirror": "tsx scripts/monorepo/binaryMirror.ts"
|
|
416
|
+
};
|
|
417
|
+
var scriptsEntries = Object.entries(scripts);
|
|
418
|
+
|
|
409
419
|
// src/targets.ts
|
|
410
420
|
init_cjs_shims();
|
|
411
421
|
function getTargets(raw) {
|
|
@@ -462,12 +472,6 @@ var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
|
|
|
462
472
|
var __dirname = import_pathe.default.dirname(__filename2);
|
|
463
473
|
var assetsDir = import_pathe.default.join(__dirname, "../assets");
|
|
464
474
|
var cwd = import_node_process.default.cwd();
|
|
465
|
-
var scripts = {
|
|
466
|
-
"script:init": "tsx scripts/monorepo/init.ts",
|
|
467
|
-
"script:sync": "tsx scripts/monorepo/sync.ts",
|
|
468
|
-
"script:clean": "tsx scripts/monorepo/clean.ts"
|
|
469
|
-
};
|
|
470
|
-
var scriptsEntries = Object.entries(scripts);
|
|
471
475
|
function setPkgJson(sourcePkgJson, targetPkgJson) {
|
|
472
476
|
const packageManager = (0, import_get_value2.default)(sourcePkgJson, "packageManager", { default: "" });
|
|
473
477
|
const deps = (0, import_get_value2.default)(sourcePkgJson, "dependencies", { default: {} });
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
init_esm_shims,
|
|
3
3
|
logger,
|
|
4
4
|
main
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TVZYBZ3T.js";
|
|
6
6
|
|
|
7
7
|
// src/cli.ts
|
|
8
8
|
init_esm_shims();
|
|
@@ -13,7 +13,7 @@ import { program } from "commander";
|
|
|
13
13
|
|
|
14
14
|
// package.json
|
|
15
15
|
var name = "@icebreakers/monorepo";
|
|
16
|
-
var version = "0.4.
|
|
16
|
+
var version = "0.4.3";
|
|
17
17
|
|
|
18
18
|
// src/program.ts
|
|
19
19
|
program.name(name).version(version);
|
package/dist/index.cjs
CHANGED
|
@@ -409,6 +409,16 @@ function isFileChanged(src, dest) {
|
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
+
// src/scripts.ts
|
|
413
|
+
init_cjs_shims();
|
|
414
|
+
var scripts = {
|
|
415
|
+
"script:init": "tsx scripts/monorepo/init.ts",
|
|
416
|
+
"script:sync": "tsx scripts/monorepo/sync.ts",
|
|
417
|
+
"script:clean": "tsx scripts/monorepo/clean.ts",
|
|
418
|
+
"script:mirror": "tsx scripts/monorepo/binaryMirror.ts"
|
|
419
|
+
};
|
|
420
|
+
var scriptsEntries = Object.entries(scripts);
|
|
421
|
+
|
|
412
422
|
// src/targets.ts
|
|
413
423
|
init_cjs_shims();
|
|
414
424
|
function getTargets(raw) {
|
|
@@ -465,12 +475,6 @@ var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
|
|
|
465
475
|
var __dirname = import_pathe.default.dirname(__filename2);
|
|
466
476
|
var assetsDir = import_pathe.default.join(__dirname, "../assets");
|
|
467
477
|
var cwd = import_node_process.default.cwd();
|
|
468
|
-
var scripts = {
|
|
469
|
-
"script:init": "tsx scripts/monorepo/init.ts",
|
|
470
|
-
"script:sync": "tsx scripts/monorepo/sync.ts",
|
|
471
|
-
"script:clean": "tsx scripts/monorepo/clean.ts"
|
|
472
|
-
};
|
|
473
|
-
var scriptsEntries = Object.entries(scripts);
|
|
474
478
|
function setPkgJson(sourcePkgJson, targetPkgJson) {
|
|
475
479
|
const packageManager = (0, import_get_value2.default)(sourcePkgJson, "packageManager", { default: "" });
|
|
476
480
|
const deps = (0, import_get_value2.default)(sourcePkgJson, "dependencies", { default: {} });
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"description": "icebreaker's monorepo config generator",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@inquirer/checkbox": "^
|
|
37
|
-
"@inquirer/confirm": "^
|
|
36
|
+
"@inquirer/checkbox": "^3.0.1",
|
|
37
|
+
"@inquirer/confirm": "^4.0.1",
|
|
38
38
|
"commander": "^12.1.0",
|
|
39
39
|
"consola": "^3.2.3",
|
|
40
40
|
"fs-extra": "^11.2.0",
|