Skip to content

Commit

Permalink
Clean up tsconfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Oct 16, 2023
1 parent 37f9145 commit 5684b22
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 55 deletions.
8 changes: 0 additions & 8 deletions packages/massa-web3/tsconfig.commonjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Extends base TypeScript configuration from 'tsconfig.json'
"extends": "./tsconfig.json",
"compilerOptions": {
// If enabled (true), generates corresponding '.d.ts' file alongside the output file.
"declaration": true,
// Specifies the module system for the output bundle. "commonjs" is a standard for structuring and organizing JavaScript code.
"module": "commonjs",
// The location where the output files will be placed.
Expand All @@ -12,10 +10,4 @@
"sourceMap": true,
"inlineSources": true
},
// A list of glob patterns that exclude certain files from the compilation.
// Here, it's set to exclude all the files in 'node_modules' and any file ending in '.spec.ts'.
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
9 changes: 0 additions & 9 deletions packages/massa-web3/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,11 @@
// Extends base TypeScript configuration from 'tsconfig.json'
"extends": "./tsconfig.json",
"compilerOptions": {
// Specifies the module system for the output bundle. "ESNext" refers to the latest version of ECMAScript (JavaScript).
"module": "ESNext",
// The version of JavaScript that the compiler will output. "ESNext" means the latest version.
"target": "ESNext",
// The location where the output files will be placed.
"outDir": "./dist/esm/",
// If enabled (true), generates corresponding '.d.ts' file alongside the output file.
"declaration": true,
// Source map options
"sourceMap": true,
"inlineSources": true
// If enabled, only declaration files will be emitted and no JavaScript files will be output.
// Currently commented out, so JavaScript files are being output as well.
// "emitDeclarationOnly": true
},
// A list of glob patterns that exclude certain files from the compilation.
// Here, it's set to exclude all the files in 'node_modules' and any file ending in '.spec.ts'.
Expand Down
4 changes: 4 additions & 0 deletions packages/massa-web3/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
},
"include": [
"./src/**/*.ts"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
27 changes: 9 additions & 18 deletions packages/web3-utils/tsconfig.commonjs.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
{
// Extends base TypeScript configuration from 'tsconfig.json'
"extends": "./tsconfig.json",

"compilerOptions": {
// If enabled (true), generates corresponding '.d.ts' file alongside the output file.
"declaration": true,

// Specifies the module system for the output bundle. "commonjs" is a standard for structuring and organizing JavaScript code.
"module": "commonjs",

// The location where the output files will be placed.
"outDir": "./dist/cmd/"
},

// A list of glob patterns that exclude certain files from the compilation.
// Here, it's set to exclude all the files in 'node_modules' and any file ending in '.spec.ts'.
"exclude": ["node_modules", "**/*.spec.ts"]
}
// Extends base TypeScript configuration from 'tsconfig.json'
"extends": "./tsconfig.json",
"compilerOptions": {
// Specifies the module system for the output bundle. "commonjs" is a standard for structuring and organizing JavaScript code.
"module": "commonjs",
// The location where the output files will be placed.
"outDir": "./dist/cmd/"
},
}
20 changes: 1 addition & 19 deletions packages/web3-utils/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
{
// Extends base TypeScript configuration from 'tsconfig.json'
"extends": "./tsconfig.json",

"compilerOptions": {
// Specifies the module system for the output bundle. "ESNext" refers to the latest version of ECMAScript (JavaScript).
"module": "ESNext",

// The version of JavaScript that the compiler will output. "ESNext" means the latest version.
"target": "ESNext",

// The location where the output files will be placed.
"outDir": "./dist/esm/",

// If enabled (true), generates corresponding '.d.ts' file alongside the output file.
"declaration": true,

// If enabled, only declaration files will be emitted and no JavaScript files will be output.
// Currently commented out, so JavaScript files are being output as well.
// "emitDeclarationOnly": true
},

// A list of glob patterns that exclude certain files from the compilation.
// Here, it's set to exclude all the files in 'node_modules' and any file ending in '.spec.ts'.
"exclude": ["node_modules", "**/*.spec.ts"]
}
}
4 changes: 4 additions & 0 deletions packages/web3-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
},
"include": [
"./src/**/*.ts"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "commonjs",
"module": "ESNext",
"declaration": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
Expand Down

0 comments on commit 5684b22

Please sign in to comment.