format: apply repo prettier (3.8.1) to the folded skills tree
963 markdown files reformatted with the repository's pinned prettier so pnpm format:check covers the folded tree like every other repo file. The formatter's embedded-language pass also normalized code fences (TS semicolons, closed HTML tags in examples, lowercased CSS hex colors, one renumbered list that skipped an index). Alphanumeric token deltas vs the fold commit were audited file-by-file; all are formatter-equivalent markup normalizations plus the four sanitized skills.
This commit is contained in:
@@ -14,6 +14,7 @@ pnpm add -D typescript
|
||||
```
|
||||
|
||||
**Requirements:**
|
||||
|
||||
- Node.js 20.19 or higher
|
||||
- Experimental support for Deno and Bun
|
||||
|
||||
@@ -26,6 +27,7 @@ pnpm create tsdown@latest
|
||||
```
|
||||
|
||||
Provides templates for:
|
||||
|
||||
- Pure TypeScript libraries
|
||||
- React component libraries
|
||||
- Vue component libraries
|
||||
@@ -37,12 +39,12 @@ Provides templates for:
|
||||
|
||||
```ts
|
||||
// src/index.ts
|
||||
import { hello } from './hello.ts'
|
||||
hello()
|
||||
import { hello } from './hello.ts';
|
||||
hello();
|
||||
|
||||
// src/hello.ts
|
||||
export function hello() {
|
||||
console.log('Hello tsdown!')
|
||||
console.log('Hello tsdown!');
|
||||
}
|
||||
```
|
||||
|
||||
@@ -50,11 +52,11 @@ export function hello() {
|
||||
|
||||
```ts
|
||||
// tsdown.config.ts
|
||||
import { defineConfig } from 'tsdown'
|
||||
import { defineConfig } from 'tsdown';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['./src/index.ts'],
|
||||
})
|
||||
});
|
||||
```
|
||||
|
||||
### 3. Run Build
|
||||
@@ -117,7 +119,7 @@ export default defineConfig({
|
||||
format: ['esm', 'cjs'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
})
|
||||
});
|
||||
```
|
||||
|
||||
### Browser Library (IIFE)
|
||||
@@ -129,7 +131,7 @@ export default defineConfig({
|
||||
globalName: 'MyLib',
|
||||
platform: 'browser',
|
||||
minify: true,
|
||||
})
|
||||
});
|
||||
```
|
||||
|
||||
### Multiple Entry Points
|
||||
@@ -143,7 +145,7 @@ export default defineConfig({
|
||||
},
|
||||
format: ['esm', 'cjs'],
|
||||
dts: true,
|
||||
})
|
||||
});
|
||||
```
|
||||
|
||||
## Using Plugins
|
||||
@@ -151,12 +153,12 @@ export default defineConfig({
|
||||
Add Rolldown, Rollup, or Unplugin plugins:
|
||||
|
||||
```ts
|
||||
import SomePlugin from 'some-plugin'
|
||||
import SomePlugin from 'some-plugin';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
plugins: [SomePlugin()],
|
||||
})
|
||||
});
|
||||
```
|
||||
|
||||
## Watch Mode
|
||||
|
||||
Reference in New Issue
Block a user