@layerzerolabs/typescript-configuration 0.2.98 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/typescript-configuration",
3
- "version": "0.2.98",
3
+ "version": "0.2.99",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -10,8 +10,8 @@
10
10
  "checkJs": false,
11
11
 
12
12
  // Module Configuration
13
- "module": "CommonJS",
14
- "moduleResolution": "Node",
13
+ "module": "ESNext",
14
+ "moduleResolution": "bundler",
15
15
 
16
16
  // Source Map and Declaration Settings
17
17
  "sourceMap": true,
@@ -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
- }
@@ -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
- }