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.d.ts"]
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 dtsRel = relative(tsconfigDir, resolve(typesRoot, ".shiftapi", "client.d.ts"));
188
- const dtsPath = dtsRel.startsWith("..") ? dtsRel : `./${dtsRel}`;
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] === dtsPath) {
192
+ if (Array.isArray(existing) && existing.length === 1 && existing[0] === clientPath) {
193
193
  return;
194
194
  }
195
- tsconfig.compilerOptions.paths[MODULE_ID] = [dtsPath];
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
@@ -11,7 +11,7 @@ import {
11
11
  regenerateTypes,
12
12
  virtualModuleTemplate,
13
13
  writeGeneratedFiles
14
- } from "./chunk-BF2EOAV4.js";
14
+ } from "./chunk-7OWLTM22.js";
15
15
  import {
16
16
  defineConfig,
17
17
  findConfigDir,
package/dist/prepare.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  generateTypes,
5
5
  patchTsConfigPaths,
6
6
  writeGeneratedFiles
7
- } from "./chunk-BF2EOAV4.js";
7
+ } from "./chunk-7OWLTM22.js";
8
8
  import {
9
9
  loadConfig
10
10
  } from "./chunk-EQN44FQG.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiftapi",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "CLI and codegen for shiftapi – fully-typed TypeScript clients from Go servers",
5
5
  "author": "Frank Chiarulli Jr. <frank@frankchiarulli.com>",
6
6
  "license": "MIT",