Skip to content

Commit

Permalink
Merge branch 'v2' into feat/server-asset-pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Jan 13, 2025
2 parents 2a76ee5 + 2c6b860 commit 8385140
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
26 changes: 15 additions & 11 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@ export default defineBuildConfig({
// Types
{ input: "src/types/index.ts" },
],
alias: {
nitropack: "nitropack",
"nitropack/meta": resolve(srcDir, "../meta.ts"),
"nitropack/runtime/meta": resolve(srcDir, "../runtime-meta.mjs"),
...Object.fromEntries(
subpaths.map((subpath) => [
`nitropack/${subpath}`,
resolve(srcDir, `${subpath}/index.ts`),
])
),
},
hooks: {
async "build:prepare"(ctx) {
for (const subpath of subpaths) {
Expand All @@ -70,6 +59,21 @@ export default defineBuildConfig({
"firebase-functions",
"@scalar/api-reference",
],
stubOptions: {
jiti: {
alias: {
nitropack: "nitropack",
"nitropack/meta": resolve(srcDir, "../meta.ts"),
"nitropack/runtime/meta": resolve(srcDir, "../runtime-meta.mjs"),
...Object.fromEntries(
subpaths.map((subpath) => [
`nitropack/${subpath}`,
resolve(srcDir, `${subpath}/index.ts`),
])
),
},
},
},
rollup: {
output: {
chunkFileNames(chunk: any) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"miniflare": "^3.20241230.1",
"prettier": "^3.4.2",
"typescript": "^5.7.3",
"unbuild": "^3.3.0",
"unbuild": "^3.3.1",
"undici": "^6.21.0",
"vitest": "^2.1.8",
"xml2js": "^0.6.2"
Expand Down
12 changes: 6 additions & 6 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 8385140

Please sign in to comment.