shiftapi 0.0.20 → 0.0.21
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.
|
@@ -162,7 +162,7 @@ function writeGeneratedFiles(typesRoot, generatedDts, baseUrl, options) {
|
|
|
162
162
|
{
|
|
163
163
|
compilerOptions: {
|
|
164
164
|
paths: {
|
|
165
|
-
[MODULE_ID]: ["./client
|
|
165
|
+
[MODULE_ID]: ["./client"]
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
},
|
|
@@ -184,15 +184,15 @@ function patchTsConfigPaths(tsconfigDir, typesRoot) {
|
|
|
184
184
|
);
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
|
-
const
|
|
188
|
-
const
|
|
187
|
+
const clientRel = relative(tsconfigDir, resolve(typesRoot, ".shiftapi", "client"));
|
|
188
|
+
const clientPath = clientRel.startsWith("..") ? clientRel : `./${clientRel}`;
|
|
189
189
|
tsconfig.compilerOptions = tsconfig.compilerOptions || {};
|
|
190
190
|
tsconfig.compilerOptions.paths = tsconfig.compilerOptions.paths || {};
|
|
191
191
|
const existing = tsconfig.compilerOptions.paths[MODULE_ID];
|
|
192
|
-
if (Array.isArray(existing) && existing.length === 1 && existing[0] ===
|
|
192
|
+
if (Array.isArray(existing) && existing.length === 1 && existing[0] === clientPath) {
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
tsconfig.compilerOptions.paths[MODULE_ID] = [
|
|
195
|
+
tsconfig.compilerOptions.paths[MODULE_ID] = [clientPath];
|
|
196
196
|
const detectedIndent = raw.match(/^[ \t]+/m)?.[0] ?? " ";
|
|
197
197
|
writeFileSync(tsconfigPath, stringify(tsconfig, null, detectedIndent) + "\n");
|
|
198
198
|
console.log(
|
package/dist/internal.js
CHANGED
package/dist/prepare.js
CHANGED
package/package.json
CHANGED