create-rstack 1.3.1 → 1.4.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.
- package/dist/index.js +24 -37
- package/package.json +6 -6
- package/template-eslint/react-js/package.json +2 -2
- package/template-eslint/react-ts/package.json +3 -3
- package/template-eslint/svelte-js/package.json +3 -3
- package/template-eslint/svelte-ts/package.json +4 -4
- package/template-eslint/vanilla-js/package.json +2 -2
- package/template-eslint/vanilla-ts/package.json +3 -3
- package/template-eslint/vue-js/eslint.config.mjs +10 -5
- package/template-eslint/vue-js/package.json +3 -3
- package/template-eslint/vue-ts/eslint.config.mjs +20 -9
- package/template-eslint/vue-ts/package.json +4 -4
- package/template-prettier/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -207,12 +207,11 @@ var __webpack_modules__ = {
|
|
|
207
207
|
} else if (/^--.+/.test(arg)) {
|
|
208
208
|
key = arg.match(/^--(.+)/)[1];
|
|
209
209
|
next = args[i + 1];
|
|
210
|
-
if (void 0 === next || /^(-|--)[^-]/.test(next) || flags.bools[key] || flags.allBools || (aliases[key] ? aliasIsBoolean(key) : false)) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
} else {
|
|
210
|
+
if (void 0 === next || /^(-|--)[^-]/.test(next) || flags.bools[key] || flags.allBools || (aliases[key] ? aliasIsBoolean(key) : false)) if (/^(true|false)$/.test(next)) {
|
|
211
|
+
setArg(key, 'true' === next, arg);
|
|
212
|
+
i += 1;
|
|
213
|
+
} else setArg(key, flags.strings[key] ? '' : true, arg);
|
|
214
|
+
else {
|
|
216
215
|
setArg(key, next, arg);
|
|
217
216
|
i += 1;
|
|
218
217
|
}
|
|
@@ -243,16 +242,13 @@ var __webpack_modules__ = {
|
|
|
243
242
|
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
|
244
243
|
}
|
|
245
244
|
key = arg.slice(-1)[0];
|
|
246
|
-
if (!broken && '-' !== key) {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
setArg(key, args[i + 1], arg);
|
|
254
|
-
i += 1;
|
|
255
|
-
}
|
|
245
|
+
if (!broken && '-' !== key) if (!args[i + 1] || /^(-|--)[^-]/.test(args[i + 1]) || flags.bools[key] || (aliases[key] ? aliasIsBoolean(key) : false)) if (args[i + 1] && /^(true|false)$/.test(args[i + 1])) {
|
|
246
|
+
setArg(key, 'true' === args[i + 1], arg);
|
|
247
|
+
i += 1;
|
|
248
|
+
} else setArg(key, flags.strings[key] ? '' : true, arg);
|
|
249
|
+
else {
|
|
250
|
+
setArg(key, args[i + 1], arg);
|
|
251
|
+
i += 1;
|
|
256
252
|
}
|
|
257
253
|
} else {
|
|
258
254
|
if (!flags.unknownFn || false !== flags.unknownFn(arg)) argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg));
|
|
@@ -409,12 +405,8 @@ function __webpack_require__(moduleId) {
|
|
|
409
405
|
return module.exports;
|
|
410
406
|
}
|
|
411
407
|
(()=>{
|
|
412
|
-
__webpack_require__.n =
|
|
413
|
-
var getter = module && module.__esModule ?
|
|
414
|
-
return module['default'];
|
|
415
|
-
} : function() {
|
|
416
|
-
return module;
|
|
417
|
-
};
|
|
408
|
+
__webpack_require__.n = (module)=>{
|
|
409
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
418
410
|
__webpack_require__.d(getter, {
|
|
419
411
|
a: getter
|
|
420
412
|
});
|
|
@@ -422,7 +414,7 @@ function __webpack_require__(moduleId) {
|
|
|
422
414
|
};
|
|
423
415
|
})();
|
|
424
416
|
(()=>{
|
|
425
|
-
__webpack_require__.d =
|
|
417
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
426
418
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
427
419
|
enumerable: true,
|
|
428
420
|
get: definition[key]
|
|
@@ -430,9 +422,7 @@ function __webpack_require__(moduleId) {
|
|
|
430
422
|
};
|
|
431
423
|
})();
|
|
432
424
|
(()=>{
|
|
433
|
-
__webpack_require__.o =
|
|
434
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
435
|
-
};
|
|
425
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
436
426
|
})();
|
|
437
427
|
var src = __webpack_require__("./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js");
|
|
438
428
|
var picocolors = __webpack_require__("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
@@ -471,10 +461,8 @@ var P = {
|
|
|
471
461
|
textLen = u.length(e), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
|
|
472
462
|
for(var D = "", C = 0, o = F(e), E = 0; E < o.length; E++){
|
|
473
463
|
var a = o[E], n = u.length(a);
|
|
474
|
-
if (C >= s - (2 == n ? 1 : 0))
|
|
475
|
-
|
|
476
|
-
else break;
|
|
477
|
-
}
|
|
464
|
+
if (C >= s - (2 == n ? 1 : 0)) if (C + n <= i) D += a;
|
|
465
|
+
else break;
|
|
478
466
|
C += n;
|
|
479
467
|
}
|
|
480
468
|
return D;
|
|
@@ -1500,14 +1488,13 @@ var createLogger = (options = {})=>{
|
|
|
1500
1488
|
label = (logType.label || "").padEnd(7);
|
|
1501
1489
|
label = bold(logType.color ? logType.color(label) : label);
|
|
1502
1490
|
}
|
|
1503
|
-
if (message instanceof Error) {
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
text = `${name}
|
|
1491
|
+
if (message instanceof Error) if (message.stack) {
|
|
1492
|
+
let [name, ...rest] = message.stack.split("\n");
|
|
1493
|
+
if (name.startsWith("Error: ")) name = name.slice(7);
|
|
1494
|
+
text = `${name}
|
|
1508
1495
|
${gray(rest.join("\n"))}`;
|
|
1509
|
-
|
|
1510
|
-
|
|
1496
|
+
} else text = message.message;
|
|
1497
|
+
else if ("error" === logType.level && "string" == typeof message) {
|
|
1511
1498
|
let lines = message.split("\n");
|
|
1512
1499
|
text = lines.map((line)=>isErrorStackMessage(line) ? gray(line) : line).join("\n");
|
|
1513
1500
|
} else text = `${message}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rstack",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Create a new Rstack project",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@biomejs/biome": "^1.9.4",
|
|
44
44
|
"@clack/prompts": "^0.10.0",
|
|
45
|
-
"@microsoft/api-extractor": "^7.
|
|
46
|
-
"@rslib/core": "0.
|
|
45
|
+
"@microsoft/api-extractor": "^7.52.2",
|
|
46
|
+
"@rslib/core": "0.6.1",
|
|
47
47
|
"@types/minimist": "^1.2.5",
|
|
48
|
-
"@types/node": "22.13.
|
|
48
|
+
"@types/node": "22.13.14",
|
|
49
49
|
"deepmerge": "^4.3.1",
|
|
50
50
|
"minimist": "^1.2.8",
|
|
51
51
|
"picocolors": "^1.1.1",
|
|
52
52
|
"rslog": "^1.2.3",
|
|
53
|
-
"simple-git-hooks": "^2.
|
|
53
|
+
"simple-git-hooks": "^2.12.1",
|
|
54
54
|
"typescript": "^5.8.2"
|
|
55
55
|
},
|
|
56
|
-
"packageManager": "pnpm@10.
|
|
56
|
+
"packageManager": "pnpm@10.7.0",
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public",
|
|
59
59
|
"provenance": true,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@eslint/compat": "^1.2.7",
|
|
10
|
-
"@eslint/js": "^9.
|
|
11
|
-
"eslint": "^9.
|
|
10
|
+
"@eslint/js": "^9.23.0",
|
|
11
|
+
"eslint": "^9.23.0",
|
|
12
12
|
"eslint-plugin-react": "^7.37.4",
|
|
13
13
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
14
14
|
"globals": "^16.0.0"
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@eslint/compat": "^1.2.7",
|
|
10
|
-
"@eslint/js": "^9.
|
|
11
|
-
"eslint": "^9.
|
|
10
|
+
"@eslint/js": "^9.23.0",
|
|
11
|
+
"eslint": "^9.23.0",
|
|
12
12
|
"eslint-plugin-react": "^7.37.4",
|
|
13
13
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
14
14
|
"globals": "^16.0.0",
|
|
15
|
-
"typescript-eslint": "^8.
|
|
15
|
+
"typescript-eslint": "^8.29.0"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"lint": "eslint ."
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@eslint/js": "^9.
|
|
10
|
-
"eslint": "^9.
|
|
11
|
-
"eslint-plugin-svelte": "^3.
|
|
9
|
+
"@eslint/js": "^9.23.0",
|
|
10
|
+
"eslint": "^9.23.0",
|
|
11
|
+
"eslint-plugin-svelte": "^3.4.1",
|
|
12
12
|
"globals": "^16.0.0"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
"lint": "eslint ."
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@eslint/js": "^9.
|
|
10
|
-
"eslint": "^9.
|
|
11
|
-
"eslint-plugin-svelte": "^3.
|
|
9
|
+
"@eslint/js": "^9.23.0",
|
|
10
|
+
"eslint": "^9.23.0",
|
|
11
|
+
"eslint-plugin-svelte": "^3.4.1",
|
|
12
12
|
"globals": "^16.0.0",
|
|
13
|
-
"typescript-eslint": "^8.
|
|
13
|
+
"typescript-eslint": "^8.29.0"
|
|
14
14
|
},
|
|
15
15
|
"type": "module"
|
|
16
16
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import js from '@eslint/js';
|
|
2
|
-
import
|
|
2
|
+
import pluginVue from 'eslint-plugin-vue';
|
|
3
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
3
4
|
import globals from 'globals';
|
|
4
5
|
|
|
5
|
-
export default [
|
|
6
|
+
export default defineConfig([
|
|
7
|
+
{
|
|
8
|
+
name: 'app/files-to-lint',
|
|
9
|
+
files: ['**/*.{js,mjs,jsx,vue}'],
|
|
10
|
+
},
|
|
11
|
+
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
|
|
6
12
|
{ languageOptions: { globals: globals.browser } },
|
|
7
13
|
js.configs.recommended,
|
|
8
|
-
...
|
|
9
|
-
|
|
10
|
-
];
|
|
14
|
+
...pluginVue.configs['flat/essential'],
|
|
15
|
+
]);
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
defineConfigWithVueTs,
|
|
3
|
+
vueTsConfigs,
|
|
4
|
+
} from '@vue/eslint-config-typescript';
|
|
5
|
+
import pluginVue from 'eslint-plugin-vue';
|
|
6
|
+
import { globalIgnores } from 'eslint/config';
|
|
3
7
|
import globals from 'globals';
|
|
4
|
-
import ts from 'typescript-eslint';
|
|
5
8
|
|
|
6
|
-
|
|
9
|
+
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
|
|
10
|
+
// import { configureVueProject } from '@vue/eslint-config-typescript'
|
|
11
|
+
// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
|
|
12
|
+
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
|
|
13
|
+
|
|
14
|
+
export default defineConfigWithVueTs(
|
|
15
|
+
{
|
|
16
|
+
name: 'app/files-to-lint',
|
|
17
|
+
files: ['**/*.{ts,mts,tsx,vue}'],
|
|
18
|
+
},
|
|
19
|
+
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
|
|
7
20
|
{ languageOptions: { globals: globals.browser } },
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{ ignores: ['dist/'] },
|
|
12
|
-
];
|
|
21
|
+
pluginVue.configs['flat/essential'],
|
|
22
|
+
vueTsConfigs.recommended,
|
|
23
|
+
);
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"lint": "eslint ."
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@eslint
|
|
10
|
-
"eslint": "^9.
|
|
11
|
-
"eslint-plugin-vue": "^
|
|
9
|
+
"@vue/eslint-config-typescript": "^14.5.0",
|
|
10
|
+
"eslint": "^9.23.0",
|
|
11
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
12
12
|
"globals": "^16.0.0",
|
|
13
|
-
"typescript-eslint": "^8.
|
|
13
|
+
"typescript-eslint": "^8.29.0"
|
|
14
14
|
}
|
|
15
15
|
}
|