@es-pkg/compile 1.0.9 → 1.0.10
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/cjs/index.js +6 -1
- package/esm/index.js +6 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -114,9 +114,14 @@ async function buildDeclarations() {
|
|
|
114
114
|
if (tsConfig.error) {
|
|
115
115
|
console.log(tsConfig.error.messageText);
|
|
116
116
|
}
|
|
117
|
+
const parsedConfig = ts__default.default.parseJsonConfigFileContent(
|
|
118
|
+
tsConfig.config,
|
|
119
|
+
ts__default.default.sys,
|
|
120
|
+
resolveApp("./")
|
|
121
|
+
);
|
|
117
122
|
const entryFiles = collectInputs.filter((item) => [".ts", ".tsx"].some((suf) => item.endsWith(suf)));
|
|
118
123
|
const compilerOptions = {
|
|
119
|
-
...
|
|
124
|
+
...parsedConfig.options,
|
|
120
125
|
declaration: true,
|
|
121
126
|
emitDeclarationOnly: true,
|
|
122
127
|
outDir: config.es,
|
package/esm/index.js
CHANGED
|
@@ -76,9 +76,14 @@ async function buildDeclarations() {
|
|
|
76
76
|
if (tsConfig.error) {
|
|
77
77
|
console.log(tsConfig.error.messageText);
|
|
78
78
|
}
|
|
79
|
+
const parsedConfig = ts.parseJsonConfigFileContent(
|
|
80
|
+
tsConfig.config,
|
|
81
|
+
ts.sys,
|
|
82
|
+
resolveApp("./")
|
|
83
|
+
);
|
|
79
84
|
const entryFiles = collectInputs.filter((item) => [".ts", ".tsx"].some((suf) => item.endsWith(suf)));
|
|
80
85
|
const compilerOptions = {
|
|
81
|
-
...
|
|
86
|
+
...parsedConfig.options,
|
|
82
87
|
declaration: true,
|
|
83
88
|
emitDeclarationOnly: true,
|
|
84
89
|
outDir: config.es,
|