@windrun-huaiin/dev-scripts 14.1.2 → 14.1.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diaomao-update.d.ts","sourceRoot":"","sources":["../../src/commands/diaomao-update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"diaomao-update.d.ts","sourceRoot":"","sources":["../../src/commands/diaomao-update.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AA4T7D,wBAAsB,aAAa,CACjC,MAAM,EAAE,gBAAgB,EACxB,GAAG,GAAE,MAA6D,GACjE,OAAO,CAAC,MAAM,CAAC,CA+MjB"}
|
|
@@ -6,6 +6,7 @@ var https = require('https');
|
|
|
6
6
|
var child_process = require('child_process');
|
|
7
7
|
var yaml = require('yaml');
|
|
8
8
|
var semver = require('semver');
|
|
9
|
+
var pc = require('picocolors');
|
|
9
10
|
|
|
10
11
|
const DEPENDENCY_SECTIONS = [
|
|
11
12
|
'dependencies',
|
|
@@ -167,18 +168,25 @@ function renderTable(rows, headers) {
|
|
|
167
168
|
].join('\n');
|
|
168
169
|
}
|
|
169
170
|
function printSkipDetails(skipRows, compactLog) {
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
const newerRows = skipRows.filter((row) => row.reason === 'skipped-newer');
|
|
172
|
+
console.log('');
|
|
173
|
+
if (newerRows.length === 0) {
|
|
174
|
+
console.log(`${pc.yellow('[diaomao-update]')} ${pc.bold('skipped-newer')}: 0`);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
console.log(`${pc.yellow('[diaomao-update]')} ${pc.bold('skipped-newer')}: ${pc.red(String(newerRows.length))}`);
|
|
178
|
+
for (const row of newerRows) {
|
|
179
|
+
console.log(` ${pc.cyan(row.packageName)} (${pc.dim(row.targetVersion)} ${pc.yellow('→')} ${pc.green(row.currentVersion)})`);
|
|
174
180
|
}
|
|
181
|
+
}
|
|
182
|
+
if (compactLog) {
|
|
175
183
|
return;
|
|
176
184
|
}
|
|
177
185
|
if (skipRows.length === 0) {
|
|
178
186
|
return;
|
|
179
187
|
}
|
|
180
188
|
console.log('\nSkipped:');
|
|
181
|
-
console.log(renderTable(skipRows, ['Package', '
|
|
189
|
+
console.log(renderTable(skipRows, ['Package', 'Current', 'Reference', 'Reason']));
|
|
182
190
|
}
|
|
183
191
|
function resolveTargetVersions(remoteCatalog, allowedPackages, compactLog) {
|
|
184
192
|
const resolvedTargets = {};
|
|
@@ -4,6 +4,7 @@ import https from 'https';
|
|
|
4
4
|
import { execSync } from 'child_process';
|
|
5
5
|
import { parse, stringify } from 'yaml';
|
|
6
6
|
import semver from 'semver';
|
|
7
|
+
import pc from 'picocolors';
|
|
7
8
|
|
|
8
9
|
const DEPENDENCY_SECTIONS = [
|
|
9
10
|
'dependencies',
|
|
@@ -165,18 +166,25 @@ function renderTable(rows, headers) {
|
|
|
165
166
|
].join('\n');
|
|
166
167
|
}
|
|
167
168
|
function printSkipDetails(skipRows, compactLog) {
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
const newerRows = skipRows.filter((row) => row.reason === 'skipped-newer');
|
|
170
|
+
console.log('');
|
|
171
|
+
if (newerRows.length === 0) {
|
|
172
|
+
console.log(`${pc.yellow('[diaomao-update]')} ${pc.bold('skipped-newer')}: 0`);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
console.log(`${pc.yellow('[diaomao-update]')} ${pc.bold('skipped-newer')}: ${pc.red(String(newerRows.length))}`);
|
|
176
|
+
for (const row of newerRows) {
|
|
177
|
+
console.log(` ${pc.cyan(row.packageName)} (${pc.dim(row.targetVersion)} ${pc.yellow('→')} ${pc.green(row.currentVersion)})`);
|
|
172
178
|
}
|
|
179
|
+
}
|
|
180
|
+
if (compactLog) {
|
|
173
181
|
return;
|
|
174
182
|
}
|
|
175
183
|
if (skipRows.length === 0) {
|
|
176
184
|
return;
|
|
177
185
|
}
|
|
178
186
|
console.log('\nSkipped:');
|
|
179
|
-
console.log(renderTable(skipRows, ['Package', '
|
|
187
|
+
console.log(renderTable(skipRows, ['Package', 'Current', 'Reference', 'Reason']));
|
|
180
188
|
}
|
|
181
189
|
function resolveTargetVersions(remoteCatalog, allowedPackages, compactLog) {
|
|
182
190
|
const resolvedTargets = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAE/B,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,aAAa,EAAE,MAAM,CAAA;QACrB,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;IAGD,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IAGD,IAAI,CAAC,EAAE;QACL,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IAGD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,CAAC,EAAE,OAAO,CAAA;KAClB,CAAA;IAGD,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAG3C,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;QAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;CACF;AAED,MAAM,WAA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AAM,EAAE,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,cAAc,EAAE,gBA8J5B,CAAA"}
|
package/dist/config/schema.js
CHANGED
|
@@ -23,7 +23,80 @@ const DEFAULT_CONFIG = {
|
|
|
23
23
|
},
|
|
24
24
|
diaomaoUpdate: {
|
|
25
25
|
sourceUrl: 'https://raw.githubusercontent.com/caofanCPU/next-ai-build/main/pnpm-workspace.yaml',
|
|
26
|
-
allowedPackages: [
|
|
26
|
+
"allowedPackages": [
|
|
27
|
+
"@changesets/cli",
|
|
28
|
+
"@clerk/localizations",
|
|
29
|
+
"@clerk/nextjs",
|
|
30
|
+
"@clerk/shared",
|
|
31
|
+
"@clerk/themes",
|
|
32
|
+
"@fingerprintjs/fingerprintjs",
|
|
33
|
+
"@hookform/resolvers",
|
|
34
|
+
"@prisma/client",
|
|
35
|
+
"@radix-ui/react-alert-dialog",
|
|
36
|
+
"@radix-ui/react-dropdown-menu",
|
|
37
|
+
"@radix-ui/react-label",
|
|
38
|
+
"@radix-ui/react-slot",
|
|
39
|
+
"@tailwindcss/cli",
|
|
40
|
+
"@tailwindcss/postcss",
|
|
41
|
+
"@tailwindcss/typography",
|
|
42
|
+
"@types/hast",
|
|
43
|
+
"@types/mdx",
|
|
44
|
+
"@types/node",
|
|
45
|
+
"@types/nprogress",
|
|
46
|
+
"@types/react",
|
|
47
|
+
"@types/react-dom",
|
|
48
|
+
"@typescript-eslint/parser",
|
|
49
|
+
"@windrun-huaiin/backend-core",
|
|
50
|
+
"@windrun-huaiin/base-ui",
|
|
51
|
+
"@windrun-huaiin/dev-scripts",
|
|
52
|
+
"@windrun-huaiin/lib",
|
|
53
|
+
"@windrun-huaiin/third-ui",
|
|
54
|
+
"autoprefixer",
|
|
55
|
+
"baseline-browser-mapping",
|
|
56
|
+
"class-variance-authority",
|
|
57
|
+
"clsx",
|
|
58
|
+
"date-fns",
|
|
59
|
+
"eslint",
|
|
60
|
+
"eslint-config-next",
|
|
61
|
+
"eslint-plugin-unused-imports",
|
|
62
|
+
"fast-glob",
|
|
63
|
+
"fumadocs-core",
|
|
64
|
+
"fumadocs-docgen",
|
|
65
|
+
"fumadocs-mdx",
|
|
66
|
+
"fumadocs-typescript",
|
|
67
|
+
"fumadocs-ui",
|
|
68
|
+
"katex",
|
|
69
|
+
"lucide-react",
|
|
70
|
+
"mermaid",
|
|
71
|
+
"next",
|
|
72
|
+
"next-intl",
|
|
73
|
+
"next-themes",
|
|
74
|
+
"nprogress",
|
|
75
|
+
"postcss",
|
|
76
|
+
"prisma",
|
|
77
|
+
"react",
|
|
78
|
+
"react-dom",
|
|
79
|
+
"react-medium-image-zoom",
|
|
80
|
+
"rehype-katex",
|
|
81
|
+
"remark",
|
|
82
|
+
"remark-frontmatter",
|
|
83
|
+
"remark-gfm",
|
|
84
|
+
"remark-math",
|
|
85
|
+
"remark-mdx",
|
|
86
|
+
"shiki",
|
|
87
|
+
"stripe",
|
|
88
|
+
"svix",
|
|
89
|
+
"swiper",
|
|
90
|
+
"tailwind-merge",
|
|
91
|
+
"tailwindcss",
|
|
92
|
+
"tailwindcss-animate",
|
|
93
|
+
"ts-morph",
|
|
94
|
+
"ts-node",
|
|
95
|
+
"typescript",
|
|
96
|
+
"unist-util-visit",
|
|
97
|
+
"uuid",
|
|
98
|
+
"zod"
|
|
99
|
+
],
|
|
27
100
|
compactLog: true
|
|
28
101
|
},
|
|
29
102
|
architectureConfig: {
|
package/dist/config/schema.mjs
CHANGED
|
@@ -21,7 +21,80 @@ const DEFAULT_CONFIG = {
|
|
|
21
21
|
},
|
|
22
22
|
diaomaoUpdate: {
|
|
23
23
|
sourceUrl: 'https://raw.githubusercontent.com/caofanCPU/next-ai-build/main/pnpm-workspace.yaml',
|
|
24
|
-
allowedPackages: [
|
|
24
|
+
"allowedPackages": [
|
|
25
|
+
"@changesets/cli",
|
|
26
|
+
"@clerk/localizations",
|
|
27
|
+
"@clerk/nextjs",
|
|
28
|
+
"@clerk/shared",
|
|
29
|
+
"@clerk/themes",
|
|
30
|
+
"@fingerprintjs/fingerprintjs",
|
|
31
|
+
"@hookform/resolvers",
|
|
32
|
+
"@prisma/client",
|
|
33
|
+
"@radix-ui/react-alert-dialog",
|
|
34
|
+
"@radix-ui/react-dropdown-menu",
|
|
35
|
+
"@radix-ui/react-label",
|
|
36
|
+
"@radix-ui/react-slot",
|
|
37
|
+
"@tailwindcss/cli",
|
|
38
|
+
"@tailwindcss/postcss",
|
|
39
|
+
"@tailwindcss/typography",
|
|
40
|
+
"@types/hast",
|
|
41
|
+
"@types/mdx",
|
|
42
|
+
"@types/node",
|
|
43
|
+
"@types/nprogress",
|
|
44
|
+
"@types/react",
|
|
45
|
+
"@types/react-dom",
|
|
46
|
+
"@typescript-eslint/parser",
|
|
47
|
+
"@windrun-huaiin/backend-core",
|
|
48
|
+
"@windrun-huaiin/base-ui",
|
|
49
|
+
"@windrun-huaiin/dev-scripts",
|
|
50
|
+
"@windrun-huaiin/lib",
|
|
51
|
+
"@windrun-huaiin/third-ui",
|
|
52
|
+
"autoprefixer",
|
|
53
|
+
"baseline-browser-mapping",
|
|
54
|
+
"class-variance-authority",
|
|
55
|
+
"clsx",
|
|
56
|
+
"date-fns",
|
|
57
|
+
"eslint",
|
|
58
|
+
"eslint-config-next",
|
|
59
|
+
"eslint-plugin-unused-imports",
|
|
60
|
+
"fast-glob",
|
|
61
|
+
"fumadocs-core",
|
|
62
|
+
"fumadocs-docgen",
|
|
63
|
+
"fumadocs-mdx",
|
|
64
|
+
"fumadocs-typescript",
|
|
65
|
+
"fumadocs-ui",
|
|
66
|
+
"katex",
|
|
67
|
+
"lucide-react",
|
|
68
|
+
"mermaid",
|
|
69
|
+
"next",
|
|
70
|
+
"next-intl",
|
|
71
|
+
"next-themes",
|
|
72
|
+
"nprogress",
|
|
73
|
+
"postcss",
|
|
74
|
+
"prisma",
|
|
75
|
+
"react",
|
|
76
|
+
"react-dom",
|
|
77
|
+
"react-medium-image-zoom",
|
|
78
|
+
"rehype-katex",
|
|
79
|
+
"remark",
|
|
80
|
+
"remark-frontmatter",
|
|
81
|
+
"remark-gfm",
|
|
82
|
+
"remark-math",
|
|
83
|
+
"remark-mdx",
|
|
84
|
+
"shiki",
|
|
85
|
+
"stripe",
|
|
86
|
+
"svix",
|
|
87
|
+
"swiper",
|
|
88
|
+
"tailwind-merge",
|
|
89
|
+
"tailwindcss",
|
|
90
|
+
"tailwindcss-animate",
|
|
91
|
+
"ts-morph",
|
|
92
|
+
"ts-node",
|
|
93
|
+
"typescript",
|
|
94
|
+
"unist-util-visit",
|
|
95
|
+
"uuid",
|
|
96
|
+
"zod"
|
|
97
|
+
],
|
|
25
98
|
compactLog: true
|
|
26
99
|
},
|
|
27
100
|
architectureConfig: {
|