-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: split packages to untangle dependencies
- Loading branch information
1 parent
d8f2ffa
commit f4415ef
Showing
6 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './index' | ||
export * from './layers/Neo4j/defineNeo4jLayer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './index' | ||
export * from './layers/NextjsCache/defineNextjsCacheLayer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './index' | ||
export * from './layers/ReactCache/defineReactCacheLayer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
entry: ["src/index.ts"], | ||
|
||
const baseOptions = { | ||
sourcemap: true, | ||
clean: true, | ||
shims: true, | ||
dts: true, | ||
format: ["esm", 'cjs'], | ||
}); | ||
format: ["cjs", 'esm'], | ||
} as Partial<Parameters<typeof defineConfig>[0]>; | ||
|
||
export default defineConfig([{ | ||
entry: { index: "src/index.ts" }, | ||
...baseOptions | ||
}, { | ||
entry: { "neo4j/index": "src/index.neo4j.ts" }, | ||
...baseOptions | ||
}, { | ||
entry: { "nextjs/index": "src/index.nextjs.ts" }, | ||
...baseOptions, | ||
banner: { js: `'use server'` } | ||
}, { | ||
entry: { "react/index": "src/index.react.ts" }, | ||
...baseOptions | ||
}]); |