mirror of
https://github.com/zoriya/typebox.git
synced 2026-06-03 03:12:09 +00:00
Revision 0.33.10 (#991)
* Specify Modules with Potential for Side Effects * Version
This commit is contained in:
@@ -91,10 +91,19 @@ function resolveMetadata() {
|
||||
repository: packageJson.repository,
|
||||
// flagged by socket.dev if not present
|
||||
scripts: { test: 'echo test' },
|
||||
// disable auto bundle strategy: see https://github.com/esm-dev/esm.sh#bundling-strategy
|
||||
'esm.sh': { 'bundle': false },
|
||||
types: "./build/cjs/index.d.ts",
|
||||
main: "./build/cjs/index.js",
|
||||
module: "./build/esm/index.mjs"
|
||||
module: "./build/esm/index.mjs",
|
||||
// disable auto bundle strategy: see https://github.com/esm-dev/esm.sh#bundling-strategy
|
||||
'esm.sh': { 'bundle': false },
|
||||
// specify modules with potential for side effects
|
||||
'sideEffects': [
|
||||
'./build/esm/type/registry/format.mjs',
|
||||
'./build/esm/type/registry/type.mjs',
|
||||
'./build/esm/type/system/policy.mjs',
|
||||
'./build/cjs/type/registry/format.js',
|
||||
'./build/cjs/type/registry/type.js',
|
||||
'./build/cjs/type/system/policy.js'
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user