Skip to content

Commit

Permalink
chore: bump rslib
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Oct 15, 2024
1 parent df22655 commit a7e1f59
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"devDependencies": {
"@biomejs/biome": "^1.9.3",
"@clack/prompts": "^0.7.0",
"@rslib/core": "0.0.5",
"@rslib/core": "0.0.12",
"@types/minimist": "^1.2.5",
"@types/node": "18.19.55",
"deepmerge": "^4.3.1",
Expand Down
37 changes: 18 additions & 19 deletions pnpm-lock.yaml

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

5 changes: 5 additions & 0 deletions rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default defineConfig({
dts: {
bundle: false,
},
shims: {
esm: {
require: true,
},
},
},
],
output: {
Expand Down
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fs from 'node:fs';
import path from 'node:path';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import {
cancel,
isCancel,
Expand All @@ -13,6 +15,9 @@ import deepmerge from 'deepmerge';
import minimist from 'minimist';
import { logger } from 'rslog';

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

export { select, multiselect, text };

function cancelAndExit() {
Expand Down

0 comments on commit a7e1f59

Please sign in to comment.