@yamada-ui/cli 1.1.1-next-20240820160301 → 1.1.2-dev-20240917033401
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/README.md +7 -13
- package/dist/command/index.js +7 -7
- package/dist/command/theme/index.js +5 -5
- package/dist/command/tokens/create-theme-typings.js +2 -2
- package/dist/command/tokens/index.js +4 -4
- package/dist/index.js +4017 -3987
- package/dist/utils/cli.js +5216 -5176
- package/dist/utils/index.js +5234 -5194
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -3,19 +3,13 @@
|
|
|
3
3
|
## Installation
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
or
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
or
|
|
16
|
-
|
|
17
|
-
```sh
|
|
18
|
-
$ npm install @yamada-ui/cli
|
|
6
|
+
pnpm add @yamada-ui/cli
|
|
7
|
+
# or
|
|
8
|
+
yarn add @yamada-ui/cli
|
|
9
|
+
# or
|
|
10
|
+
npm install @yamada-ui/cli
|
|
11
|
+
# or
|
|
12
|
+
bun add @yamada-ui/cli
|
|
19
13
|
```
|
|
20
14
|
|
|
21
15
|
## Contribution
|
package/dist/command/index.js
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.
|
|
33
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
|
|
34
34
|
var init_cjs_shims = __esm({
|
|
35
|
-
"../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.
|
|
35
|
+
"../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -826,8 +826,8 @@ var generateThemeTypings = async ({
|
|
|
826
826
|
p.note(outPath, "Output path");
|
|
827
827
|
const end = process.hrtime.bigint();
|
|
828
828
|
const duration = (Number(end - start) / 1e9).toFixed(2);
|
|
829
|
-
p.outro(source_default.green(`Done in ${duration}s
|
|
830
|
-
`)
|
|
829
|
+
p.outro(`${source_default.green(`Done`)} in ${source_default.dim(`${duration}s`)}
|
|
830
|
+
`);
|
|
831
831
|
} catch (e) {
|
|
832
832
|
s.stop(`An error occurred`, 500);
|
|
833
833
|
p.cancel(source_default.red(e instanceof Error ? e.message : "Message is missing"));
|
|
@@ -1031,7 +1031,7 @@ var replaceIndex = (content) => {
|
|
|
1031
1031
|
var generateTheme = async (outPath, fileMap, isReactReplace, isForceReplace) => {
|
|
1032
1032
|
if (!await isWriteable(import_path4.default.dirname(outPath))) {
|
|
1033
1033
|
throw new Error(
|
|
1034
|
-
"The provided path is not writable, please check folder permissions and try again
|
|
1034
|
+
"The provided path is not writable, please check folder permissions and try again. It is likely you do not have write permissions for this folder."
|
|
1035
1035
|
);
|
|
1036
1036
|
}
|
|
1037
1037
|
await (0, import_promises2.mkdir)(outPath, { recursive: true });
|
|
@@ -1077,8 +1077,8 @@ var actionTheme = async (_outPath, { branch = DEFAULT_BRANCH_NAME, cwd, replace
|
|
|
1077
1077
|
s.stop(`Wrote the theme`);
|
|
1078
1078
|
const end = process.hrtime.bigint();
|
|
1079
1079
|
const duration = (Number(end - start) / 1e9).toFixed(2);
|
|
1080
|
-
p2.outro(source_default.green(`Done in ${duration}s
|
|
1081
|
-
`)
|
|
1080
|
+
p2.outro(`${source_default.green(`Done`)} in ${source_default.dim(`${duration}s`)}
|
|
1081
|
+
`);
|
|
1082
1082
|
} catch (e) {
|
|
1083
1083
|
s.stop(`An error occurred`, 500);
|
|
1084
1084
|
p2.cancel(source_default.red(e instanceof Error ? e.message : "Message is missing"));
|
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.
|
|
33
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
|
|
34
34
|
var init_cjs_shims = __esm({
|
|
35
|
-
"../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.
|
|
35
|
+
"../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -733,7 +733,7 @@ var replaceIndex = (content) => {
|
|
|
733
733
|
var generateTheme = async (outPath, fileMap, isReactReplace, isForceReplace) => {
|
|
734
734
|
if (!await isWriteable(import_path2.default.dirname(outPath))) {
|
|
735
735
|
throw new Error(
|
|
736
|
-
"The provided path is not writable, please check folder permissions and try again
|
|
736
|
+
"The provided path is not writable, please check folder permissions and try again. It is likely you do not have write permissions for this folder."
|
|
737
737
|
);
|
|
738
738
|
}
|
|
739
739
|
await (0, import_promises.mkdir)(outPath, { recursive: true });
|
|
@@ -779,8 +779,8 @@ var actionTheme = async (_outPath, { branch = DEFAULT_BRANCH_NAME, cwd, replace
|
|
|
779
779
|
s.stop(`Wrote the theme`);
|
|
780
780
|
const end = process.hrtime.bigint();
|
|
781
781
|
const duration = (Number(end - start) / 1e9).toFixed(2);
|
|
782
|
-
p.outro(source_default.green(`Done in ${duration}s
|
|
783
|
-
`)
|
|
782
|
+
p.outro(`${source_default.green(`Done`)} in ${source_default.dim(`${duration}s`)}
|
|
783
|
+
`);
|
|
784
784
|
} catch (e) {
|
|
785
785
|
s.stop(`An error occurred`, 500);
|
|
786
786
|
p.cancel(source_default.red(e instanceof Error ? e.message : "Message is missing"));
|
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.
|
|
33
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
|
|
34
34
|
var init_cjs_shims = __esm({
|
|
35
|
-
"../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.
|
|
35
|
+
"../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.
|
|
33
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
|
|
34
34
|
var init_cjs_shims = __esm({
|
|
35
|
-
"../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.
|
|
35
|
+
"../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -822,8 +822,8 @@ var generateThemeTypings = async ({
|
|
|
822
822
|
p.note(outPath, "Output path");
|
|
823
823
|
const end = process.hrtime.bigint();
|
|
824
824
|
const duration = (Number(end - start) / 1e9).toFixed(2);
|
|
825
|
-
p.outro(source_default.green(`Done in ${duration}s
|
|
826
|
-
`)
|
|
825
|
+
p.outro(`${source_default.green(`Done`)} in ${source_default.dim(`${duration}s`)}
|
|
826
|
+
`);
|
|
827
827
|
} catch (e) {
|
|
828
828
|
s.stop(`An error occurred`, 500);
|
|
829
829
|
p.cancel(source_default.red(e instanceof Error ? e.message : "Message is missing"));
|