Skip to content

Commit 1229b37

Browse files
authored
chore(create-rspack): bump Rslib 0.0.12 and adjust dirname (#8124)
1 parent a97e105 commit 1229b37

File tree

4 files changed

+138
-28
lines changed

4 files changed

+138
-28
lines changed

packages/create-rspack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"dev": "rslib build -w"
2525
},
2626
"dependencies": {
27-
"create-rstack": "1.0.2"
27+
"create-rstack": "1.0.6"
2828
},
2929
"devDependencies": {
30-
"@rslib/core": "0.0.5",
30+
"@rslib/core": "0.0.12",
3131
"typescript": "5.0.2"
3232
},
3333
"publishConfig": {

packages/create-rspack/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from "node:path";
2+
import { fileURLToPath } from "node:url";
23
import {
34
type Argv,
45
type ESLintTemplateName,
@@ -7,6 +8,8 @@ import {
78
select
89
} from "create-rstack";
910

11+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
12+
1013
async function getTemplateName({ template }: Argv) {
1114
if (typeof template === "string") {
1215
const pair = template.split("-");

packages/create-rspack/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"src"
55
],
66
"compilerOptions": {
7+
"module": "NodeNext",
78
"outDir": "dist",
89
"rootDir": "src"
910
}

pnpm-lock.yaml

Lines changed: 132 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)