You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 44af1e2
Browse filesBrowse the repository at this point in the historyBrowse files
Renames @stacksjs/dtsx to @dtsx/dtsx, in the dtsx npm org next to
@dtsx/vite-plugin. Every plugin depends on @dtsx/dtsx; the API, the dtsx CLI,
the config and all subpath exports are unchanged.
READMEs, the install guide and MIGRATION.md explain the move from
@stacksjs/dtsx. Tests pin the new name, the plugin dependencies, and that the
former name only appears in migration notes; the docs matcher now also checks
subpath imports and require() calls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
> dtsx was published as `@stacksjs/dtsx` up to v0.11.36. Install `@dtsx/dtsx` instead and change imports from `@stacksjs/dtsx` to `@dtsx/dtsx`; the API, CLI and config are unchanged. See [Migrating from @stacksjs/dtsx](https://github.com/stacksjs/dtsx/blob/main/docs/MIGRATION.md#from-stacksjsdtsx).
37
+
35
38
> _@npmjs.com, please allow us to use the `dtsx` package name 🙏_
36
39
37
40
<!-- _Alternatively, you can install:_
@@ -48,8 +51,8 @@ There are two ways to use dtsx: _as a library or as a CLI._ Both work out of the
@@ -474,7 +477,7 @@ _A whole directory of generated modules. dtsx and tsc use multiple threads; the
474
477
475
478
### JavaScript SDK
476
479
477
-
_The `@stacksjs/dtsx` SDK, which powers the bundler and build-tool plugins, called in-process like any other JavaScript SDK. It ships the native engine for each platform and runs it in-process through Bun FFI, falling back to its TypeScript engine where no native library applies._
480
+
_The `@dtsx/dtsx` SDK, which powers the bundler and build-tool plugins, called in-process like any other JavaScript SDK. It ships the native engine for each platform and runs it in-process through Bun FFI, falling back to its TypeScript engine where no native library applies._
Copy file name to clipboardExpand all lines: benchmark/render.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ ${project}
150
150
151
151
${h2} JavaScript SDK
152
152
153
-
_The \`@stacksjs/dtsx\` SDK, which powers the bundler and build-tool plugins, called in-process like any other JavaScript SDK. It ships the native engine for each platform and runs it in-process through Bun FFI, falling back to its TypeScript engine where no native library applies._
153
+
_The \`@dtsx/dtsx\` SDK, which powers the bundler and build-tool plugins, called in-process like any other JavaScript SDK. It ships the native engine for each platform and runs it in-process through Bun FFI, falling back to its TypeScript engine where no native library applies._
dtsx was published as `@stacksjs/dtsx` up to v0.11.36. From v0.11.37 it is published as `@dtsx/dtsx`, alongside the Vite plugin `@dtsx/vite-plugin`. Only the package name changed: the API, the `dtsx` CLI, the config file and every subpath export (`/vite`, `/esbuild`, `/tsup`, `/tsdown`, `/webpack`, `/plugins`, `/checker`) are the same.
19
+
20
+
1. Swap the dependency:
21
+
22
+
```bash
23
+
bun remove @stacksjs/dtsx
24
+
bun add -d @dtsx/dtsx
25
+
```
26
+
27
+
2. Update imports:
28
+
29
+
```diff
30
+
- import { defineConfig, generate } from '@stacksjs/dtsx'
31
+
+ import { defineConfig, generate } from '@dtsx/dtsx'
32
+
- import { dts } from '@stacksjs/dtsx/tsdown'
33
+
+ import { dts } from '@dtsx/dtsx/tsdown'
34
+
```
35
+
36
+
A project-wide search and replace of `@stacksjs/dtsx` with `@dtsx/dtsx` covers it.
37
+
38
+
The bundler plugins (`bun-plugin-dtsx`, `esbuild-plugin-dtsx`, `tsup-plugin-dtsx`, `webpack-plugin-dtsx`, `@dtsx/vite-plugin`) depend on `@dtsx/dtsx` from v0.11.37; update them to the same version.
39
+
15
40
## From tsc --declaration
16
41
17
42
### Before (tsc)
@@ -40,7 +65,7 @@ This guide helps you migrate from other TypeScript declaration generation tools
40
65
41
66
```bash
42
67
# Install
43
-
bun add @stacksjs/dtsx -d
68
+
bun add @dtsx/dtsx -d
44
69
```
45
70
46
71
```json
@@ -54,7 +79,7 @@ bun add @stacksjs/dtsx -d
54
79
55
80
```typescript
56
81
// dtsx.config.ts
57
-
import { defineConfig } from'@stacksjs/dtsx'
82
+
import { defineConfig } from'@dtsx/dtsx'
58
83
59
84
exportdefaultdefineConfig({
60
85
entrypoints: ['src/index.ts'],
@@ -75,7 +100,7 @@ export default defineConfig({
75
100
76
101
### Migration Steps
77
102
78
-
1. Install dtsx: `bun add @stacksjs/dtsx -d`
103
+
1. Install dtsx: `bun add @dtsx/dtsx -d`
79
104
2. Create `dtsx.config.ts`
80
105
3. Update build script in `package.json`
81
106
4. Remove `declaration` options from tsconfig (optional)
0 commit comments