Skip to content

Commit

Permalink
Bugfix: Fix build issues related to skeleton-cli (#3086)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 authored Jan 8, 2025
1 parent 0b0c02b commit e157fc8
Show file tree
Hide file tree
Showing 6 changed files with 600 additions and 352 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: ['src/index'],
outDir: 'dist',
clean: true,
entries: ['./src/index.ts'],
declaration: true,
clean: true,
rollup: {
emitCJS: true
}
Expand Down
2 changes: 1 addition & 1 deletion packages/necroparser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@zag-js/accordion": "^0.78.3",
"memfs": "^4.15.0",
"unbuild": "^2.0.0",
"unbuild": "^3.2.0",
"vite": "^6.0.4",
"vitest": "^2.1.8"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/skeleton-cli/build.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: ['./src/index.ts', './src/commands/migrate/index.ts'],
declaration: true,
sourcemap: true,
entries: ['src/index.ts', 'src/commands/migrate/index.ts'],
outDir: 'dist',
clean: true,
rollup: {
emitCJS: true
Expand Down
2 changes: 1 addition & 1 deletion packages/skeleton-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/semver": "^7.5.8",
"type-fest": "^4.27.0",
"typescript": "catalog:",
"unbuild": "^2.0.0",
"unbuild": "^3.2.0",
"vitest": "^2.0.5"
},
"license": "MIT",
Expand Down
17 changes: 17 additions & 0 deletions packages/skeleton-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": ["DOM", "ESNext"],
"moduleDetection": "force",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"],
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"isolatedModules": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true
},
"include": ["src/*.ts"]
}
Loading

0 comments on commit e157fc8

Please sign in to comment.