create-rsbuild 0.7.1 → 0.7.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/dist/index.js CHANGED
@@ -38,12 +38,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  mod
39
39
  ));
40
40
 
41
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.50.0_eslint@9.3.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
41
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.51.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
42
42
  import { fileURLToPath } from "url";
43
43
  import path from "path";
44
44
  var getFilename, getDirname, __dirname;
45
45
  var init_esm = __esm({
46
- "../../node_modules/.pnpm/@modern-js+module-tools@2.50.0_eslint@9.3.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js"() {
46
+ "../../node_modules/.pnpm/@modern-js+module-tools@2.51.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js"() {
47
47
  "use strict";
48
48
  getFilename = () => fileURLToPath(import.meta.url);
49
49
  getDirname = () => path.dirname(getFilename());
@@ -113,8 +113,67 @@ var require_src = __commonJS({
113
113
  }
114
114
  });
115
115
 
116
- // ../../node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js
116
+ // ../../node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js
117
117
  var require_picocolors = __commonJS({
118
+ "../../node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js"(exports, module) {
119
+ "use strict";
120
+ init_esm();
121
+ var argv = process.argv || [];
122
+ var env2 = process.env;
123
+ var isColorSupported = !("NO_COLOR" in env2 || argv.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv.includes("--color") || process.platform === "win32" || __require != null && __require("tty").isatty(1) && env2.TERM !== "dumb" || "CI" in env2);
124
+ var formatter2 = (open, close, replace = open) => (input) => {
125
+ let string = "" + input;
126
+ let index = string.indexOf(close, open.length);
127
+ return ~index ? open + replaceClose2(string, close, replace, index) + close : open + string + close;
128
+ };
129
+ var replaceClose2 = (string, close, replace, index) => {
130
+ let result = "";
131
+ let cursor = 0;
132
+ do {
133
+ result += string.substring(cursor, index) + replace;
134
+ cursor = index + close.length;
135
+ index = string.indexOf(close, cursor);
136
+ } while (~index);
137
+ return result + string.substring(cursor);
138
+ };
139
+ var createColors = (enabled = isColorSupported) => {
140
+ let init = enabled ? formatter2 : () => String;
141
+ return {
142
+ isColorSupported: enabled,
143
+ reset: init("\x1B[0m", "\x1B[0m"),
144
+ bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
145
+ dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
146
+ italic: init("\x1B[3m", "\x1B[23m"),
147
+ underline: init("\x1B[4m", "\x1B[24m"),
148
+ inverse: init("\x1B[7m", "\x1B[27m"),
149
+ hidden: init("\x1B[8m", "\x1B[28m"),
150
+ strikethrough: init("\x1B[9m", "\x1B[29m"),
151
+ black: init("\x1B[30m", "\x1B[39m"),
152
+ red: init("\x1B[31m", "\x1B[39m"),
153
+ green: init("\x1B[32m", "\x1B[39m"),
154
+ yellow: init("\x1B[33m", "\x1B[39m"),
155
+ blue: init("\x1B[34m", "\x1B[39m"),
156
+ magenta: init("\x1B[35m", "\x1B[39m"),
157
+ cyan: init("\x1B[36m", "\x1B[39m"),
158
+ white: init("\x1B[37m", "\x1B[39m"),
159
+ gray: init("\x1B[90m", "\x1B[39m"),
160
+ bgBlack: init("\x1B[40m", "\x1B[49m"),
161
+ bgRed: init("\x1B[41m", "\x1B[49m"),
162
+ bgGreen: init("\x1B[42m", "\x1B[49m"),
163
+ bgYellow: init("\x1B[43m", "\x1B[49m"),
164
+ bgBlue: init("\x1B[44m", "\x1B[49m"),
165
+ bgMagenta: init("\x1B[45m", "\x1B[49m"),
166
+ bgCyan: init("\x1B[46m", "\x1B[49m"),
167
+ bgWhite: init("\x1B[47m", "\x1B[49m")
168
+ };
169
+ };
170
+ module.exports = createColors();
171
+ module.exports.createColors = createColors;
172
+ }
173
+ });
174
+
175
+ // ../../node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js
176
+ var require_picocolors2 = __commonJS({
118
177
  "../../node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js"(exports, module) {
119
178
  "use strict";
120
179
  init_esm();
@@ -533,7 +592,7 @@ var TD = class extends x {
533
592
  var PD = globalThis.process.platform.startsWith("win");
534
593
 
535
594
  // ../../node_modules/.pnpm/@clack+prompts@0.7.0/node_modules/@clack/prompts/dist/index.mjs
536
- var import_picocolors2 = __toESM(require_picocolors(), 1);
595
+ var import_picocolors2 = __toESM(require_picocolors2(), 1);
537
596
  var import_sisteransi2 = __toESM(require_src(), 1);
538
597
  import h from "process";
539
598
  function q2() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "devDependencies": {
15
15
  "@rsbuild/core": "workspace:*",
16
16
  "@rsbuild/plugin-react": "workspace:*",
17
- "@types/react": "^18.3.2",
17
+ "@types/react": "^18.3.3",
18
18
  "@types/react-dom": "^18.3.0",
19
19
  "typescript": "^5.4.2"
20
20
  }
@@ -8,7 +8,7 @@
8
8
  "preview": "rsbuild preview"
9
9
  },
10
10
  "dependencies": {
11
- "svelte": "^4.2.16"
11
+ "svelte": "^4.2.17"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@rsbuild/core": "workspace:*",
@@ -8,7 +8,7 @@
8
8
  "preview": "rsbuild preview"
9
9
  },
10
10
  "dependencies": {
11
- "svelte": "^4.2.16"
11
+ "svelte": "^4.2.17"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@rsbuild/core": "workspace:*",