create-rspack-canary 1.3.16-canary-764a99da-20250610073503 → 1.3.16-canary-34e5ff4a-20250612073343
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const src_dirname =
|
|
1
|
+
import external_node_path_default from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { checkCancel, create, select as external_create_rstack_select } from "create-rstack";
|
|
4
|
+
const src_dirname = external_node_path_default.dirname(fileURLToPath(import.meta.url));
|
|
5
5
|
async function getTemplateName({ template }) {
|
|
6
6
|
if ("string" == typeof template) {
|
|
7
7
|
const pair = template.split("-");
|
|
@@ -9,7 +9,7 @@ async function getTemplateName({ template }) {
|
|
|
9
9
|
const framework = pair[0];
|
|
10
10
|
return `${framework}-${language}`;
|
|
11
11
|
}
|
|
12
|
-
const framework =
|
|
12
|
+
const framework = checkCancel(await external_create_rstack_select({
|
|
13
13
|
message: "Select framework",
|
|
14
14
|
options: [
|
|
15
15
|
{
|
|
@@ -26,7 +26,7 @@ async function getTemplateName({ template }) {
|
|
|
26
26
|
}
|
|
27
27
|
]
|
|
28
28
|
}));
|
|
29
|
-
const language =
|
|
29
|
+
const language = checkCancel(await external_create_rstack_select({
|
|
30
30
|
message: "Select language",
|
|
31
31
|
options: [
|
|
32
32
|
{
|
|
@@ -52,8 +52,8 @@ function mapESLintTemplate(templateName) {
|
|
|
52
52
|
const language = templateName.split("-")[1];
|
|
53
53
|
return `vanilla-${language}`;
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
root:
|
|
55
|
+
create({
|
|
56
|
+
root: external_node_path_default.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.3.16-canary-
|
|
3
|
+
"version": "1.3.16-canary-34e5ff4a-20250612073343",
|
|
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.9.
|
|
26
|
+
"@rslib/core": "0.9.2",
|
|
27
27
|
"typescript": "^5.8.3"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@rspack/cli": "workspace:*",
|
|
16
16
|
"@rspack/core": "workspace:*",
|
|
17
17
|
"@rspack/plugin-react-refresh": "^1.4.3",
|
|
18
|
-
"@types/react": "^19.1.
|
|
18
|
+
"@types/react": "^19.1.7",
|
|
19
19
|
"@types/react-dom": "^19.1.6",
|
|
20
20
|
"react-refresh": "^0.17.0",
|
|
21
21
|
"ts-node": "^10.9.2",
|