merge-tsconfigs 0.0.6 → 0.0.7
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/README.md +5 -1
- package/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -128,12 +128,16 @@ const config = mergeTsconfigs({
|
|
|
128
128
|
|
|
129
129
|
---
|
|
130
130
|
|
|
131
|
-
## How do I
|
|
131
|
+
## How do I start using this?
|
|
132
|
+
|
|
133
|
+
Install merge-tsconfigs with your preferred package manager.
|
|
132
134
|
|
|
133
135
|
```sh
|
|
134
136
|
npm install merge-tsconfigs --save-dev
|
|
135
137
|
```
|
|
136
138
|
|
|
139
|
+
\*unpkg and skypack support coming very soon! 🚀
|
|
140
|
+
|
|
137
141
|
---
|
|
138
142
|
|
|
139
143
|
Made by [@yowainwright](https://github.com/yowainwright), MIT 2023
|
package/dist/index.cjs
CHANGED
|
@@ -172,7 +172,7 @@ var compilerOptions = {
|
|
|
172
172
|
async function action(files, options = {}) {
|
|
173
173
|
const { debug = false, isTesting = false, isTestingCLI = false, ...compilerOptions2 } = options;
|
|
174
174
|
if (isTestingCLI) {
|
|
175
|
-
console.info({ files });
|
|
175
|
+
console.info({ files, options });
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
178
|
try {
|
|
@@ -185,7 +185,9 @@ import_commander.program.name("merge-tsconfigs").description(
|
|
|
185
185
|
"Merge-tsconfigs is a CLI and node tool for merging tsconfig files into the exact tsconfig file you want \u{1F6E3}\uFE0F"
|
|
186
186
|
).argument("[files...]", "files to check, matches an array pattern").option("-d, --debug", "enable debugging").option("-e, --exclude [exclude...]", "files to exclude, matches a glob or array pattern").option("-i, --include [include...]", "files to include, matches a glob or array pattern").option("--isTesting", "enable testing").option("-o, --out <file>", "output file, otherwise, the file will be written to tsconfig.merged.json").option("-t, --isTestingCLI", "enable CLI only testing");
|
|
187
187
|
Object.keys(compilerOptions).map((name) => ({ name, value: compilerOptions[name] })).forEach(({ name, value }) => {
|
|
188
|
-
if (
|
|
188
|
+
if (value === "boolean") {
|
|
189
|
+
import_commander.program.option(`--${name}`, `tsconfig.compilerOptions.${name}`);
|
|
190
|
+
} else if (value === "string") {
|
|
189
191
|
import_commander.program.option(`--${name} <${value}>`, `tsconfig.compilerOptions.${name}`);
|
|
190
192
|
} else if (value === "array") {
|
|
191
193
|
import_commander.program.option(`--${name} [${value}...]`, `tsconfig.compilerOptions.${name}`);
|
package/dist/index.js
CHANGED
|
@@ -140,7 +140,7 @@ var compilerOptions = {
|
|
|
140
140
|
async function action(files, options = {}) {
|
|
141
141
|
const { debug = false, isTesting = false, isTestingCLI = false, ...compilerOptions2 } = options;
|
|
142
142
|
if (isTestingCLI) {
|
|
143
|
-
console.info({ files });
|
|
143
|
+
console.info({ files, options });
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
146
|
try {
|
|
@@ -153,7 +153,9 @@ program.name("merge-tsconfigs").description(
|
|
|
153
153
|
"Merge-tsconfigs is a CLI and node tool for merging tsconfig files into the exact tsconfig file you want \u{1F6E3}\uFE0F"
|
|
154
154
|
).argument("[files...]", "files to check, matches an array pattern").option("-d, --debug", "enable debugging").option("-e, --exclude [exclude...]", "files to exclude, matches a glob or array pattern").option("-i, --include [include...]", "files to include, matches a glob or array pattern").option("--isTesting", "enable testing").option("-o, --out <file>", "output file, otherwise, the file will be written to tsconfig.merged.json").option("-t, --isTestingCLI", "enable CLI only testing");
|
|
155
155
|
Object.keys(compilerOptions).map((name) => ({ name, value: compilerOptions[name] })).forEach(({ name, value }) => {
|
|
156
|
-
if (
|
|
156
|
+
if (value === "boolean") {
|
|
157
|
+
program.option(`--${name}`, `tsconfig.compilerOptions.${name}`);
|
|
158
|
+
} else if (value === "string") {
|
|
157
159
|
program.option(`--${name} <${value}>`, `tsconfig.compilerOptions.${name}`);
|
|
158
160
|
} else if (value === "array") {
|
|
159
161
|
program.option(`--${name} [${value}...]`, `tsconfig.compilerOptions.${name}`);
|
package/package.json
CHANGED