@layerzerolabs/typescript-configuration 0.2.97 → 0.2.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tsconfig.base.json +2 -2
- package/tsconfig.bundler.json +0 -30
- package/tsconfig.node.json +0 -30
package/package.json
CHANGED
package/tsconfig.base.json
CHANGED
package/tsconfig.bundler.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "Bundler",
|
|
4
|
-
/**
|
|
5
|
-
* Use this configuration for:
|
|
6
|
-
* - Packages that use bundlers (tsup, webpack, etc.)
|
|
7
|
-
* - Libraries that will be bundled before being consumed
|
|
8
|
-
*
|
|
9
|
-
* Note on module resolution:
|
|
10
|
-
* The bundler/ESNext configuration provides better compatibility with
|
|
11
|
-
* both ESM and CommonJS modules. Modern bundlers can handle both
|
|
12
|
-
* formats efficiently, making this the ideal choice for packages
|
|
13
|
-
* that will be bundled.
|
|
14
|
-
*
|
|
15
|
-
* Common indicators:
|
|
16
|
-
* - Presence of tsup.config.ts
|
|
17
|
-
* - Package is a shared library
|
|
18
|
-
*
|
|
19
|
-
* Do NOT use this for:
|
|
20
|
-
* - Direct Node.js applications without bundling
|
|
21
|
-
* - Scripts that run directly with node
|
|
22
|
-
* Use tsconfig.node.json instead for those cases
|
|
23
|
-
*/
|
|
24
|
-
"extends": "./tsconfig.node.json",
|
|
25
|
-
"compilerOptions": {
|
|
26
|
-
// Modern bundler settings
|
|
27
|
-
"module": "ESNext",
|
|
28
|
-
"moduleResolution": "bundler"
|
|
29
|
-
}
|
|
30
|
-
}
|
package/tsconfig.node.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "Node",
|
|
4
|
-
/**
|
|
5
|
-
* Use this configuration for:
|
|
6
|
-
* - Direct Node.js applications and scripts
|
|
7
|
-
* - Server applications that run with node directly
|
|
8
|
-
* - CLI tools and scripts that aren't bundled
|
|
9
|
-
*
|
|
10
|
-
* Note on module resolution:
|
|
11
|
-
* We use NodeNext because it follows Node.js's native
|
|
12
|
-
* module resolution rules, which is ideal for applications
|
|
13
|
-
* that run directly with node without bundling.
|
|
14
|
-
*
|
|
15
|
-
* If your package uses a bundler (e.g., has tsup.config.ts),
|
|
16
|
-
* use tsconfig.bundler.json instead.
|
|
17
|
-
*/
|
|
18
|
-
"extends": "./tsconfig.base.json",
|
|
19
|
-
"compilerOptions": {
|
|
20
|
-
// Node-specific module settings
|
|
21
|
-
"module": "NodeNext",
|
|
22
|
-
"moduleResolution": "NodeNext",
|
|
23
|
-
|
|
24
|
-
// Node.js Environment
|
|
25
|
-
"types": ["node"],
|
|
26
|
-
|
|
27
|
-
// Output Configuration
|
|
28
|
-
"removeComments": true
|
|
29
|
-
}
|
|
30
|
-
}
|