Skip to content

Commit

Permalink
chore(create-rspack): bump Rslib 0.0.12 and adjust dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Oct 15, 2024
1 parent a97e105 commit 57e8e24
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 28 deletions.
4 changes: 2 additions & 2 deletions packages/create-rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"dev": "rslib build -w"
},
"dependencies": {
"create-rstack": "1.0.2"
"create-rstack": "1.0.6"
},
"devDependencies": {
"@rslib/core": "0.0.5",
"@rslib/core": "0.0.12",
"typescript": "5.0.2"
},
"publishConfig": {
Expand Down
3 changes: 3 additions & 0 deletions packages/create-rspack/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import {
type Argv,
type ESLintTemplateName,
Expand All @@ -7,6 +8,8 @@ import {
select
} from "create-rstack";

const __dirname = path.dirname(fileURLToPath(import.meta.url));

async function getTemplateName({ template }: Argv) {
if (typeof template === "string") {
const pair = template.split("-");
Expand Down
1 change: 1 addition & 0 deletions packages/create-rspack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"src"
],
"compilerOptions": {
"module": "NodeNext",
"outDir": "dist",
"rootDir": "src"
}
Expand Down
158 changes: 132 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 57e8e24

Please sign in to comment.