create-rspack-canary 1.4.0-canary-09c640dc-20250617101749 → 1.4.0-canary-82610c33-20250619134644
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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import node_path from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import { checkCancel, create, select as external_create_rstack_select } from "create-rstack";
|
|
4
|
-
const src_dirname =
|
|
4
|
+
const src_dirname = node_path.dirname(fileURLToPath(import.meta.url));
|
|
5
5
|
async function getTemplateName({ template }) {
|
|
6
6
|
if ("string" == typeof template) {
|
|
7
7
|
const pair = template.split("-");
|
|
@@ -53,7 +53,7 @@ function mapESLintTemplate(templateName) {
|
|
|
53
53
|
return `vanilla-${language}`;
|
|
54
54
|
}
|
|
55
55
|
create({
|
|
56
|
-
root:
|
|
56
|
+
root: node_path.resolve(src_dirname, ".."),
|
|
57
57
|
name: "rspack",
|
|
58
58
|
templates: [
|
|
59
59
|
"vanilla-js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rspack-canary",
|
|
3
|
-
"version": "1.4.0-canary-
|
|
3
|
+
"version": "1.4.0-canary-82610c33-20250619134644",
|
|
4
4
|
"homepage": "https://rspack.rs",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"create-rstack": "1.4.5"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@rslib/core": "0.
|
|
26
|
+
"@rslib/core": "0.10.0",
|
|
27
27
|
"typescript": "^5.8.3"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"module": "ESNext",
|
|
6
4
|
"jsx": "react-jsx",
|
|
7
|
-
"
|
|
5
|
+
"target": "ES2020",
|
|
8
6
|
"noEmit": true,
|
|
9
7
|
"skipLibCheck": true,
|
|
10
|
-
"
|
|
8
|
+
"useDefineForClassFields": true,
|
|
9
|
+
|
|
10
|
+
/* modules */
|
|
11
|
+
"module": "ESNext",
|
|
12
|
+
"verbatimModuleSyntax": true,
|
|
11
13
|
"resolveJsonModule": true,
|
|
12
14
|
"moduleResolution": "bundler",
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
+
"allowImportingTsExtensions": true,
|
|
16
|
+
|
|
17
|
+
/* type checking */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true
|
|
15
21
|
},
|
|
16
22
|
"include": ["src"],
|
|
17
23
|
"ts-node": {
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"
|
|
4
|
+
"target": "ES2020",
|
|
6
5
|
"noEmit": true,
|
|
7
|
-
"strict": true,
|
|
8
6
|
"skipLibCheck": true,
|
|
9
|
-
"isolatedModules": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
7
|
"useDefineForClassFields": true,
|
|
13
|
-
|
|
8
|
+
|
|
9
|
+
/* modules */
|
|
10
|
+
"module": "ESNext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"verbatimModuleSyntax": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"allowImportingTsExtensions": true,
|
|
15
|
+
|
|
16
|
+
/* type checking */
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true
|
|
14
20
|
},
|
|
15
21
|
"include": ["src"],
|
|
16
22
|
"ts-node": {
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"module": "ESNext",
|
|
6
4
|
"jsx": "preserve",
|
|
7
|
-
"
|
|
8
|
-
"strict": true,
|
|
5
|
+
"target": "ES2020",
|
|
9
6
|
"noEmit": true,
|
|
10
7
|
"skipLibCheck": true,
|
|
11
|
-
"
|
|
8
|
+
"jsxImportSource": "vue",
|
|
9
|
+
"useDefineForClassFields": true,
|
|
10
|
+
|
|
11
|
+
/* modules */
|
|
12
|
+
"module": "ESNext",
|
|
13
|
+
"verbatimModuleSyntax": true,
|
|
12
14
|
"resolveJsonModule": true,
|
|
13
15
|
"moduleResolution": "bundler",
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
+
"allowImportingTsExtensions": true,
|
|
17
|
+
|
|
18
|
+
/* type checking */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true
|
|
16
22
|
},
|
|
17
23
|
"include": ["src"],
|
|
18
24
|
"ts-node": {
|