fix(time-context): inline shared build helper
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"lib/index.js",
|
"lib/index.js",
|
||||||
"lib/invariant.js",
|
"lib/invariant.js",
|
||||||
"lib/request-zone-*.js",
|
|
||||||
"lib/types/**/*.d.ts"
|
"lib/types/**/*.d.ts"
|
||||||
],
|
],
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
import { defineConfig } from 'tsdown'
|
||||||
|
|
||||||
|
/** Build both public entries separately so each inlines the shared request-zone helper. */
|
||||||
|
export default defineConfig([
|
||||||
|
{
|
||||||
|
entry: ['lib/types/index.js'],
|
||||||
|
outDir: 'lib',
|
||||||
|
format: ['esm'],
|
||||||
|
platform: 'node',
|
||||||
|
target: 'es2024',
|
||||||
|
fixedExtension: false,
|
||||||
|
dts: false,
|
||||||
|
clean: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
entry: ['lib/types/invariant.js'],
|
||||||
|
outDir: 'lib',
|
||||||
|
format: ['esm'],
|
||||||
|
platform: 'node',
|
||||||
|
target: 'es2024',
|
||||||
|
fixedExtension: false,
|
||||||
|
dts: false,
|
||||||
|
clean: false,
|
||||||
|
},
|
||||||
|
])
|
||||||
Reference in New Issue
Block a user