Skip to content

Commit c14a409

Browse files
committed
refactor(release): use simple release type for antfu skill plugins
Antfu skill plugins don't publish to npm, so they don't need the node release type. Switch to simple release type with version-file pointing to plugin.json for version tracking. - Change release-type from node to simple for all 14 antfu plugins - Replace extra-files with version-file for cleaner config - Remove package-name field (not needed for simple type) - Remove dummy package.json from: antfu, slidev, tsdown, turborepo, vue, vueuse, web-design - Remove package.json creation from ensurePlugin() in scripts/cli.ts
1 parent 95bc4e1 commit c14a409

340 files changed

Lines changed: 2914 additions & 33268 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

plugins/slidev/skills/slidev/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Presenter notes go here
7676
| Click-based highlighting | `` ```ts {1\|2-3\|all} `` | [code-line-highlighting](references/code-line-highlighting.md) |
7777
| Line numbers | `lineNumbers: true` or `{lines:true}` | [code-line-numbers](references/code-line-numbers.md) |
7878
| Scrollable code | `{maxHeight:'100px'}` | [code-max-height](references/code-max-height.md) |
79-
| Code tabs | `::code-group` (requires `mdc: true`) | [code-groups](references/code-groups.md) |
79+
| Code tabs | `::code-group` (requires `comark: true`) | [code-groups](references/code-groups.md) |
8080
| Monaco editor | `` ```ts {monaco} `` | [editor-monaco](references/editor-monaco.md) |
8181
| Run code | `` ```ts {monaco-run} `` | [editor-monaco-run](references/editor-monaco-run.md) |
8282
| Edit files | `<<< ./file.ts {monaco-write}` | [editor-monaco-write](references/editor-monaco-write.md) |
@@ -119,7 +119,7 @@ Presenter notes go here
119119

120120
| Feature | Usage | Reference |
121121
|---------|-------|-----------|
122-
| MDC syntax | `mdc: true` + `{style="color:red"}` | [syntax-mdc](references/syntax-mdc.md) |
122+
| Comark syntax | `comark: true` + `{style="color:red"}` | [syntax-comark](references/syntax-comark.md) |
123123
| Block frontmatter | `` ```yaml `` instead of `---` | [syntax-block-frontmatter](references/syntax-block-frontmatter.md) |
124124
| Import slides | `src: ./other.md` | [syntax-importing-slides](references/syntax-importing-slides.md) |
125125
| Merge frontmatter | Main entry wins | [syntax-frontmatter-merging](references/syntax-frontmatter-merging.md) |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Sync Info
22

33
- **Source:** `vendor/slidev/skills/slidev`
4-
- **Git SHA:** `ba4a524fdfa5608b530766dcd37b1651e6996f67`
5-
- **Synced:** 2026-01-31
4+
- **Git SHA:** `c8a7b7d639ff0a26cf3de036505668263ef5a3b0`
5+
- **Synced:** 2026-03-04

plugins/slidev/skills/slidev/references/code-groups.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Group multiple code blocks with tabs and automatic icons.
99

1010
## Requirements
1111

12-
Enable MDC syntax in headmatter:
12+
Enable Comark syntax in headmatter:
1313

1414
```md
1515
---
16-
mdc: true
16+
comark: true
1717
---
1818
```
1919

plugins/slidev/skills/slidev/references/core-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ Alice -> Bob : Hello
117117
```
118118
````
119119

120-
## MDC Syntax
120+
## Comark Syntax
121121

122-
Enable with `mdc: true`:
122+
Enable with `comark: true`:
123123

124124
```md
125125
[styled text]{style="color:red"}

plugins/slidev/skills/slidev/references/syntax-mdc.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
name: mdc
3-
description: MDC (Markdown Components) syntax support
2+
name: comark
3+
description: Comark Syntax support
44
---
55

6-
# MDC Syntax
6+
# Comark Syntax
77

88
Enhanced Markdown with component and style syntax.
99

1010
## Enable
1111

1212
```md
1313
---
14-
mdc: true
14+
comark: true
1515
---
1616
```
1717

@@ -48,4 +48,4 @@ The **default** slot content
4848
- Add attributes to images
4949
- Create complex component layouts
5050

51-
Based on Nuxt's MDC (Markdown Components) syntax.
51+
Based on Comark Syntax.

plugins/tsdown/skills/tsdown/SKILL.md

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,16 @@ export default defineConfig({
7777
| Source maps | `sourcemap: true`, `'inline'`, `'hidden'` | [option-sourcemap](references/option-sourcemap.md) |
7878
| Watch mode | `watch: true`, watch options | [option-watch-mode](references/option-watch-mode.md) |
7979
| Cleaning | `clean: true`, clean patterns | [option-cleaning](references/option-cleaning.md) |
80-
| Log level | `logLevel: 'silent'`, `failOnWarn: 'ci-only'` | [option-log-level](references/option-log-level.md) |
80+
| Log level | `logLevel: 'silent'`, `failOnWarn: false` | [option-log-level](references/option-log-level.md) |
8181

8282
## Dependency Handling
8383

8484
| Feature | Usage | Reference |
8585
|---------|-------|-----------|
86-
| External deps | `external: ['react', /^@myorg\//]` | [option-dependencies](references/option-dependencies.md) |
87-
| Inline deps | `noExternal: ['dep-to-bundle']` | [option-dependencies](references/option-dependencies.md) |
86+
| Never bundle | `deps: { neverBundle: ['react', /^@myorg\//] }` | [option-dependencies](references/option-dependencies.md) |
87+
| Always bundle | `deps: { alwaysBundle: ['dep-to-bundle'] }` | [option-dependencies](references/option-dependencies.md) |
88+
| Only allow bundle | `deps: { onlyAllowBundle: ['cac', 'bumpp'] }` - Whitelist | [option-dependencies](references/option-dependencies.md) |
89+
| Skip node_modules | `deps: { skipNodeModulesBundle: true }` | [option-dependencies](references/option-dependencies.md) |
8890
| Auto external | Automatic peer/dependency externalization | [option-dependencies](references/option-dependencies.md) |
8991

9092
## Output Enhancement
@@ -94,8 +96,9 @@ export default defineConfig({
9496
| Shims | `shims: true` - Add ESM/CJS compatibility | [option-shims](references/option-shims.md) |
9597
| CJS default | `cjsDefault: true` (default) / `false` | [option-cjs-default](references/option-cjs-default.md) |
9698
| Package exports | `exports: true` - Auto-generate exports field | [option-package-exports](references/option-package-exports.md) |
97-
| CSS handling | **[experimental]** Still in development | [option-css](references/option-css.md) |
99+
| CSS handling | **[experimental]** `css: { splitting, preprocessorOptions, lightningcss }` | [option-css](references/option-css.md) |
98100
| Unbundle mode | `unbundle: true` - Preserve directory structure | [option-unbundle](references/option-unbundle.md) |
101+
| Executable | **[experimental]** `exe: true` - Bundle as standalone executable, cross-platform via `@tsdown/exe` | [option-exe](references/option-exe.md) |
99102
| Package validation | `publint: true`, `attw: true` - Validate package | [option-lint](references/option-lint.md) |
100103

101104
## Framework & Runtime Support
@@ -152,7 +155,9 @@ export default defineConfig({
152155
entry: ['src/index.tsx'],
153156
format: ['esm', 'cjs'],
154157
dts: true,
155-
external: ['react', 'react-dom'],
158+
deps: {
159+
neverBundle: ['react', 'react-dom'],
160+
},
156161
plugins: [
157162
// React Fast Refresh support
158163
],
@@ -177,7 +182,7 @@ export default defineConfig({
177182
entry: ['src/index.ts'],
178183
format: ['esm', 'cjs'],
179184
dts: true,
180-
failOnWarn: 'ci-only',
185+
failOnWarn: 'ci-only', // opt-in: fail on warnings in CI
181186
publint: 'ci-only',
182187
attw: 'ci-only',
183188
})
@@ -195,6 +200,48 @@ export default defineConfig({
195200
})
196201
```
197202

203+
### Library with CSS and Sass
204+
205+
```ts
206+
export default defineConfig({
207+
entry: ['src/index.ts'],
208+
format: ['esm', 'cjs'],
209+
dts: true,
210+
target: 'chrome100',
211+
css: {
212+
preprocessorOptions: {
213+
scss: {
214+
additionalData: `@use "src/styles/variables" as *;`,
215+
},
216+
},
217+
},
218+
})
219+
```
220+
221+
### Standalone Executable
222+
223+
```ts
224+
export default defineConfig({
225+
entry: ['src/cli.ts'],
226+
exe: true,
227+
})
228+
```
229+
230+
### Cross-Platform Executable (requires `@tsdown/exe`)
231+
232+
```ts
233+
export default defineConfig({
234+
entry: ['src/cli.ts'],
235+
exe: {
236+
targets: [
237+
{ platform: 'linux', arch: 'x64', nodeVersion: '25.7.0' },
238+
{ platform: 'darwin', arch: 'arm64', nodeVersion: '25.7.0' },
239+
{ platform: 'win', arch: 'x64', nodeVersion: '25.7.0' },
240+
],
241+
},
242+
})
243+
```
244+
198245
### Advanced with Hooks
199246

200247
```ts
@@ -277,6 +324,7 @@ tsdown --format esm,cjs # Multiple formats
277324
tsdown --outDir lib # Custom output directory
278325
tsdown --minify # Enable minification
279326
tsdown --dts # Generate declarations
327+
tsdown --exe # Bundle as standalone executable
280328

281329
# Entry options
282330
tsdown src/index.ts # Single entry
@@ -298,7 +346,7 @@ tsdown --clean # Clean output directory
298346

299347
2. **Externalize dependencies** to avoid bundling unnecessary code:
300348
```ts
301-
{ external: [/^react/, /^@myorg\//] }
349+
{ deps: { neverBundle: [/^react/, /^@myorg\//] } }
302350
```
303351

304352
3. **Use tree shaking** for optimal bundle size:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Sync Info
22

33
- **Source:** `vendor/tsdown/skills/tsdown`
4-
- **Git SHA:** `76b612274f6bf4efb9f1b9285ea2aad56556df67`
5-
- **Synced:** 2026-01-31
4+
- **Git SHA:** `eb2ece08973064019a2d7cdec11b55ce956cc5f3`
5+
- **Synced:** 2026-03-04

plugins/tsdown/skills/tsdown/references/advanced-ci.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ These options accept CI-aware values:
2828
- `exports` - Auto-generate `package.json` exports
2929
- `unused` - Unused dependency check
3030
- `devtools` - DevTools integration
31-
- `failOnWarn` - Fail on warnings (defaults to `'ci-only'`)
31+
- `failOnWarn` - Fail on warnings (defaults to `false`)
3232

3333
## Usage
3434

@@ -38,7 +38,7 @@ These options accept CI-aware values:
3838
export default defineConfig({
3939
dts: 'local-only', // Skip DTS in CI for faster builds
4040
publint: 'ci-only', // Only run publint in CI
41-
failOnWarn: 'ci-only', // Fail on warnings in CI only (default)
41+
failOnWarn: 'ci-only', // Fail on warnings in CI only (opt-in)
4242
})
4343
```
4444

plugins/tsdown/skills/tsdown/references/advanced-programmatic.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ const config = defineConfig({
7070
dts: true,
7171
minify: true,
7272
sourcemap: true,
73-
external: ['react', 'react-dom'],
73+
deps: {
74+
neverBundle: ['react', 'react-dom'],
75+
},
7476
plugins: [/* plugins */],
7577
hooks: {
7678
'build:done': async () => {
Lines changed: 149 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,153 @@
11
# CSS Support
22

3-
**Status: Experimental — still in active development.**
3+
**Status: Experimental — API and behavior may change.**
44

5-
CSS handling in tsdown is not yet stable. The API and capabilities may change significantly in future releases.
5+
Configure CSS handling including preprocessors, syntax lowering, and code splitting.
66

7-
Avoid relying on CSS-related options in production builds until the feature is marked as stable.
7+
## CSS Import
8+
9+
Import `.css` files from TypeScript/JavaScript — CSS is extracted into separate `.css` assets:
10+
11+
```ts
12+
// src/index.ts
13+
import './style.css'
14+
export function greet() { return 'Hello' }
15+
```
16+
17+
Output: `index.mjs` + `index.css`
18+
19+
## CSS Pre-processors
20+
21+
Built-in support for Sass, Less, and Stylus. Install the preprocessor:
22+
23+
```bash
24+
# Sass (either one)
25+
npm install -D sass-embedded # recommended, faster
26+
npm install -D sass
27+
28+
# Less
29+
npm install -D less
30+
31+
# Stylus
32+
npm install -D stylus
33+
```
34+
35+
Then import directly:
36+
37+
```ts
38+
import './style.scss'
39+
import './theme.less'
40+
import './global.styl'
41+
```
42+
43+
### Preprocessor Options
44+
45+
```ts
46+
export default defineConfig({
47+
css: {
48+
preprocessorOptions: {
49+
scss: {
50+
additionalData: `$brand-color: #ff7e17;`,
51+
},
52+
less: {
53+
math: 'always',
54+
},
55+
stylus: {
56+
define: { '$brand-color': '#ff7e17' },
57+
},
58+
},
59+
},
60+
})
61+
```
62+
63+
### `additionalData`
64+
65+
Inject code at the beginning of every preprocessor file:
66+
67+
```ts
68+
// String form
69+
scss: {
70+
additionalData: `@use "src/styles/variables" as *;`,
71+
}
72+
73+
// Function form
74+
scss: {
75+
additionalData: (source, filename) => {
76+
if (filename.includes('theme')) return source
77+
return `@use "src/styles/variables" as *;\n${source}`
78+
},
79+
}
80+
```
81+
82+
## Lightning CSS (Syntax Lowering)
83+
84+
Install `lightningcss` to enable CSS syntax lowering based on your `target`:
85+
86+
```bash
87+
npm install -D lightningcss
88+
```
89+
90+
When `target` is set (e.g., `target: 'chrome108'`), modern CSS features are automatically downleveled:
91+
92+
```css
93+
/* Input */
94+
.foo { & .bar { color: red } }
95+
96+
/* Output (chrome108) */
97+
.foo .bar { color: red }
98+
```
99+
100+
### Custom Lightning CSS Options
101+
102+
```ts
103+
import { Features } from 'lightningcss'
104+
105+
export default defineConfig({
106+
css: {
107+
lightningcss: {
108+
targets: { chrome: 100 << 16 },
109+
include: Features.Nesting,
110+
},
111+
},
112+
})
113+
```
114+
115+
`css.lightningcss.targets` takes precedence over the top-level `target` for CSS.
116+
117+
## Code Splitting
118+
119+
### Merged (Default)
120+
121+
All CSS merged into a single file (default: `style.css`).
122+
123+
```ts
124+
export default defineConfig({
125+
css: {
126+
fileName: 'my-library.css', // Custom name (default: 'style.css')
127+
},
128+
})
129+
```
130+
131+
### Per-Chunk Splitting
132+
133+
```ts
134+
export default defineConfig({
135+
css: {
136+
splitting: true, // Each JS chunk gets a corresponding .css file
137+
},
138+
})
139+
```
140+
141+
## Options Reference
142+
143+
| Option | Type | Default | Description |
144+
|--------|------|---------|-------------|
145+
| `css.splitting` | `boolean` | `false` | Per-chunk CSS splitting |
146+
| `css.fileName` | `string` | `'style.css'` | Merged CSS file name |
147+
| `css.preprocessorOptions` | `object` || Preprocessor options (scss/sass/less/styl/stylus) |
148+
| `css.lightningcss` | `object` || Lightning CSS transform options |
149+
150+
## Related
151+
152+
- [Target](option-target.md) - Configure syntax lowering targets
153+
- [Output Format](option-output-format.md) - Module output formats

0 commit comments

Comments
 (0)