remark-cjk-friendly 2.0.1 → 2.2.0
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.
- package/README.md +80 -10
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -3
- package/dist/parseOnly.d.ts +9 -0
- package/dist/parseOnly.js +15 -0
- package/dist/serializeOnly.d.ts +9 -0
- package/dist/serializeOnly.js +15 -0
- package/package.json +13 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# remark-cjk-friendly
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.com/package/remark-cjk-friendly)  [](https://npmjs.com/package/remark-cjk-friendly) [](https://npmjs.com/package/remark-cjk-friendly) [](https://socket.dev/npm/package/remark-cjk-friendly) [
|
|
3
|
+
[](https://npmjs.com/package/remark-cjk-friendly)  [](https://npmjs.com/package/remark-cjk-friendly) [](https://npmjs.com/package/remark-cjk-friendly) [](https://socket.dev/npm/package/remark-cjk-friendly) [\[Snyk Security\]](https://security.snyk.io/package/npm/remark-cjk-friendly)
|
|
4
4
|
|
|
5
5
|
A [remark](https://github.com/remarkjs/remark) plugin to make Markdown emphasis (`**`) in CommonMark (and MDX) compatible with Chinese, Japanese, and Korean (CJK).
|
|
6
6
|
|
|
@@ -170,6 +170,14 @@ const processor = unified()
|
|
|
170
170
|
const htmlResult = (await processor.process(markdownString)).toString();
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
+
This plugin also wires the reverse path for `remark-stringify` / `mdast-util-to-markdown`, so CJK text around `*` / `**` stays raw when it is valid under this specification instead of being escaped as character references. If you don't need this (only need Markdown parsing), or don't need parsing and only need this serialization, you can import from `remark-cjk-friendly/parseOnly` or `remark-cjk-friendly/serializeOnly` instead of `remark-cjk-friendly` to avoid bundling the unnecessary processing.
|
|
174
|
+
|
|
175
|
+
<span lang="ja">このプラグインは`remark-stringify` / `mdast-util-to-markdown`向けの逆方向シリアライズ拡張も自動で配線するため、この仕様で妥当なケースでは`*` / `**`の前後にあるCJK文字が文字参照へエスケープされず、そのまま出力されます。これが不要(Markdownのパースのみが必要)、またはパースが不要でこのシリアライズのみが必要な場合は、`remark-cjk-friendly`の代わりにそれぞれ`remark-cjk-friendly/parseOnly`または`remark-cjk-friendly/serializeOnly`からインポートすると、不要な方の処理のバンドルを避けることができます。</span>
|
|
176
|
+
|
|
177
|
+
<span lang="zh-Hans-CN">此插件还会自动接入 `remark-stringify` / `mdast-util-to-markdown` 的反向序列化扩展,因此在本规范允许的情况下,`*` / `**` 周围的 CJK 文字会保持原样输出,而不会被转义为字符引用。如果不需要此功能(仅需要 Markdown 解析),或者不需要解析仅需要序列化,可以分别从 `remark-cjk-friendly/parseOnly` 或 `remark-cjk-friendly/serializeOnly` 导入,而不是从 `remark-cjk-friendly` 导入,以避免打包不必要的处理。</span>
|
|
178
|
+
|
|
179
|
+
<span lang="ko">이 플러그인은 `remark-stringify` / `mdast-util-to-markdown`용 역방향 직렬화 확장도 자동으로 연결하므로, 이 사양에서 유효한 경우 `*` / `**` 주변의 CJK 문자가 문자 참조로 이스케이프되지 않고 그대로 출력됩니다. 이 기능이 필요 없는 경우(Markdown 파싱만 필요)또는 파싱이 필요 없고 직렬화만 필요한 경우, `remark-cjk-friendly` 대신 각각 `remark-cjk-friendly/parseOnly` 또는 `remark-cjk-friendly/serializeOnly`에서 가져오면 불필요한 처리 번들을 피할 수 있습니다.</span>
|
|
180
|
+
|
|
173
181
|
For MDX, add `remarkCjkFriendly` to the `remarkPlugins` array in the config object:
|
|
174
182
|
|
|
175
183
|
<span lang="ja">MDXでは、設定オブジェクトの`remarkPlugins`配列に`remarkCjkFriendly`を追加してください。</span>
|
|
@@ -185,13 +193,73 @@ const someMdxConfig = {
|
|
|
185
193
|
};
|
|
186
194
|
```
|
|
187
195
|
|
|
188
|
-
|
|
196
|
+
This plugin is not compatible with Rust-based remark-compatible Markdown/MDX parsers, including the following:
|
|
197
|
+
|
|
198
|
+
- [mdx-rs](https://crates.io/crates/mdx-rs) crate
|
|
199
|
+
- [@rspress/mdx-rs](https://github.com/web-infra-dev/mdx-rs) package
|
|
200
|
+
- [Sätteri](https://satteri.bruits.org/)
|
|
201
|
+
|
|
202
|
+
When using this plugin, you need to use the real remark parser that internally uses micromark, which is implemented in pure JavaScript and thus monkey-patchable, instead of these parsers. Here are well-known use cases. If applicable, please take the corresponding workaround.
|
|
203
|
+
|
|
204
|
+
| Well-known use case | Workaround |
|
|
205
|
+
| --- | --- |
|
|
206
|
+
| `mdxRs` option in [Rspress 1.x](https://v1.rspress.rs/guide/basic/use-mdx#disabling-the-rust-version-compiler) | Set it to `false` |
|
|
207
|
+
| `mdxRs` option in [Next.js (`@next/mdx`)](https://nextjs.org/docs/pages/building-your-application/configuring/mdx#using-the-rust-based-mdx-compiler-experimental) | Set it to `false` |
|
|
208
|
+
| Astro 6.4 or later | Use `@astrojs/markdown-remark` instead of `@astrojs/markdown-satteri` |
|
|
209
|
+
|
|
210
|
+
<div lang="ja">
|
|
211
|
+
|
|
212
|
+
本プラグインは、次を含むRustベースのremark互換のMarkdown・MDXパーサと互換性がありません。
|
|
213
|
+
|
|
214
|
+
- [mdx-rs](https://crates.io/crates/mdx-rs)クレート
|
|
215
|
+
- [@rspress/mdx-rs](https://github.com/web-infra-dev/mdx-rs)パッケージ
|
|
216
|
+
- [Sätteri](https://satteri.bruits.org/)
|
|
217
|
+
|
|
218
|
+
本プラグインを使う場合、これらのパーサではなく、純JavaScriptで実装されているためモンキーパッチ可能なパーサmicromarkを中で使用している、本物のremarkパーサを使う必要があります。次のような利用先が有名です。当てはまる場合は、対応する回避策を取ってください。
|
|
219
|
+
|
|
220
|
+
| 有名な利用先 | 回避策 |
|
|
221
|
+
| --- | --- |
|
|
222
|
+
| [Rspress 1.x](https://v1.rspress.rs/guide/basic/use-mdx#disabling-the-rust-version-compiler)の`mdxRs`オプション | `false`にしてください |
|
|
223
|
+
| [Next.js(`@next/mdx`)](https://nextjs.org/docs/pages/building-your-application/configuring/mdx#using-the-rust-based-mdx-compiler-experimental)の`mdxRs`オプション | `false`にしてください |
|
|
224
|
+
| Astro 6.4以降 | `@astrojs/markdown-satteri`ではなく、`@astrojs/markdown-remark`を使ってください |
|
|
225
|
+
|
|
226
|
+
</div>
|
|
227
|
+
|
|
228
|
+
<div lang="zh-Hans-CN">
|
|
229
|
+
|
|
230
|
+
本插件与以下Rust语言实现的remark兼容的Markdown/MDX解析器不兼容:
|
|
231
|
+
|
|
232
|
+
- [mdx-rs](https://crates.io/crates/mdx-rs) crate
|
|
233
|
+
- [@rspress/mdx-rs](https://github.com/web-infra-dev/mdx-rs) 包
|
|
234
|
+
- [Sätteri](https://satteri.bruits.org/)
|
|
235
|
+
|
|
236
|
+
使用本插件时,需要使用内部使用micromark(由纯JavaScript实现,因此可以进行猴子补丁)的真正的remark解析器,而不是这些解析器。以下是常见的使用场景,如果适用,请采取相应的解决方法。
|
|
237
|
+
|
|
238
|
+
| 常见使用场景 | 解决方法 |
|
|
239
|
+
| --- | --- |
|
|
240
|
+
| [Rspress 1.x](https://v1.rspress.rs/zh/guide/basic/use-mdx#%E5%85%B3%E9%97%AD-rust-%E7%89%88%E6%9C%AC%E7%BC%96%E8%AF%91%E5%99%A8)的`mdxRs`选项 | 请设置为`false` |
|
|
241
|
+
| [Next.js(`@next/mdx`)](https://nextjs.org/docs/pages/building-your-application/configuring/mdx#using-the-rust-based-mdx-compiler-experimental)的`mdxRs`选项 | 请设置为`false` |
|
|
242
|
+
| Astro 6.4及以后版本 | 请使用`@astrojs/markdown-remark`而不是`@astrojs/markdown-satteri` |
|
|
243
|
+
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
<div lang="ko">
|
|
247
|
+
|
|
248
|
+
이 플러그인은 다음을 포함하는 Rust 기반의 remark 호환 Markdown/MDX 파서와 호환되지 않습니다.
|
|
249
|
+
|
|
250
|
+
- [mdx-rs](https://crates.io/crates/mdx-rs) 크레이트
|
|
251
|
+
- [@rspress/mdx-rs](https://github.com/web-infra-dev/mdx-rs) 패키지
|
|
252
|
+
- [Sätteri](https://satteri.bruits.org/)
|
|
189
253
|
|
|
190
|
-
|
|
254
|
+
이 플러그인을 사용할 때는 이러한 파서 대신, 순수 JavaScript로 구현되어 있어 몽키 패치가 가능한 micromark를 내부적으로 사용하는 진정한 remark 파서를 사용해야 합니다. 다음과 같은 잘 알려진 사용처가 있습니다. 해당하는 경우에는 그에 맞는 해결 방법을 적용하세요.
|
|
191
255
|
|
|
192
|
-
|
|
256
|
+
| 잘 알려진 사용처 | 해결 방법 |
|
|
257
|
+
| --- | --- |
|
|
258
|
+
| [Rspress 1.x](https://v1.rspress.rs/guide/basic/use-mdx#disabling-the-rust-version-compiler)의 `mdxRs` 옵션 | `false`로 설정하세요 |
|
|
259
|
+
| [Next.js(`@next/mdx`)](https://nextjs.org/docs/pages/building-your-application/configuring/mdx#using-the-rust-based-mdx-compiler-experimental)의 `mdxRs` 옵션 | `false`로 설정하세요 |
|
|
260
|
+
| Astro 6.4 이후 | `@astrojs/markdown-satteri` 대신 `@astrojs/markdown-remark`를 사용하세요 |
|
|
193
261
|
|
|
194
|
-
|
|
262
|
+
</div>
|
|
195
263
|
|
|
196
264
|
## Compatibility with the other languages / <span lang="ja">他言語との互換性</span> / <span lang="zh-Hans-CN">与其他语言的兼容性</span> / <span lang="ko">다른 언어와의 호환성</span>
|
|
197
265
|
|
|
@@ -209,12 +277,14 @@ https://github.com/tats-u/markdown-cjk-friendly/blob/main/specification.md (Engl
|
|
|
209
277
|
|
|
210
278
|
## Related packages / <span lang="ja">関連パッケージ</span> / <span lang="zh-Hans-CN">相关包</span> / <span lang="ko">관련 패키지</span>
|
|
211
279
|
|
|
212
|
-
- [remark-cjk-friendly-gfm-strikethrough](https://npmjs.com/package/remark-cjk-friendly-gfm-strikethrough) [](https://npmjs.com/package/remark-cjk-friendly-gfm-strikethrough)  [](https://npmjs.com/package/remark-cjk-friendly-gfm-strikethrough) [](https://npmjs.com/package/remark-cjk-friendly-gfm-strikethrough) [](https://socket.dev/npm/package/remark-cjk-friendly-gfm-strikethrough) [
|
|
213
|
-
- [
|
|
214
|
-
|
|
215
|
-
- [micromark-extension-cjk-friendly-
|
|
280
|
+
- [remark-cjk-friendly-gfm-strikethrough](https://npmjs.com/package/remark-cjk-friendly-gfm-strikethrough) [](https://npmjs.com/package/remark-cjk-friendly-gfm-strikethrough)  [](https://npmjs.com/package/remark-cjk-friendly-gfm-strikethrough) [](https://npmjs.com/package/remark-cjk-friendly-gfm-strikethrough) [](https://socket.dev/npm/package/remark-cjk-friendly-gfm-strikethrough) [\[Snyk Security\]](https://security.snyk.io/package/npm/remark-cjk-friendly-gfm-strikethrough)
|
|
281
|
+
- [mdast-util-to-markdown-cjk-friendly](https://npmjs.com/package/mdast-util-to-markdown-cjk-friendly) [](https://npmjs.com/package/mdast-util-to-markdown-cjk-friendly)  [](https://npmjs.com/package/mdast-util-to-markdown-cjk-friendly) [](https://npmjs.com/package/mdast-util-to-markdown-cjk-friendly) [](https://socket.dev/npm/package/mdast-util-to-markdown-cjk-friendly) [\[Snyk Security\]](https://security.snyk.io/package/npm/mdast-util-to-markdown-cjk-friendly)
|
|
282
|
+
- [micromark-extension-cjk-friendly](https://npmjs.com/package/micromark-extension-cjk-friendly) [](https://npmjs.com/package/micromark-extension-cjk-friendly)  [](https://npmjs.com/package/micromark-extension-cjk-friendly) [](https://npmjs.com/package/micromark-extension-cjk-friendly) [](https://socket.dev/npm/package/micromark-extension-cjk-friendly) [\[Snyk Security\]](https://security.snyk.io/package/npm/micromark-extension-cjk-friendly)
|
|
283
|
+
- [micromark-extension-cjk-friendly-util](https://npmjs.com/package/micromark-extension-cjk-friendly-util) [](https://npmjs.com/package/micromark-extension-cjk-friendly-util)  [](https://npmjs.com/package/micromark-extension-cjk-friendly-util) [](https://npmjs.com/package/micromark-extension-cjk-friendly-util) [](https://socket.dev/npm/package/micromark-extension-cjk-friendly-util) [\[Snyk Security\]](https://security.snyk.io/package/npm/micromark-extension-cjk-friendly-util)
|
|
284
|
+
- [micromark-extension-cjk-friendly-gfm-strikethrough](https://npmjs.com/package/micromark-extension-cjk-friendly-gfm-strikethrough) [](https://npmjs.com/package/micromark-extension-cjk-friendly-gfm-strikethrough)  [](https://npmjs.com/package/micromark-extension-cjk-friendly-gfm-strikethrough) [](https://npmjs.com/package/micromark-extension-cjk-friendly-gfm-strikethrough) [](https://socket.dev/npm/package/micromark-extension-cjk-friendly-gfm-strikethrough) [\[Snyk Security\]](https://security.snyk.io/package/npm/micromark-extension-cjk-friendly-gfm-strikethrough)
|
|
216
285
|
|
|
217
|
-
- [markdown-it-cjk-friendly](https://npmjs.com/package/markdown-it-cjk-friendly) [](https://npmjs.com/package/markdown-it-cjk-friendly)  [](https://npmjs.com/package/markdown-it-cjk-friendly) [](https://npmjs.com/package/markdown-it-cjk-friendly) [](https://socket.dev/npm/package/markdown-it-cjk-friendly) [
|
|
286
|
+
- [markdown-it-cjk-friendly](https://npmjs.com/package/markdown-it-cjk-friendly) [](https://npmjs.com/package/markdown-it-cjk-friendly)  [](https://npmjs.com/package/markdown-it-cjk-friendly) [](https://npmjs.com/package/markdown-it-cjk-friendly) [](https://socket.dev/npm/package/markdown-it-cjk-friendly) [\[Snyk Security\]](https://security.snyk.io/package/npm/markdown-it-cjk-friendly)
|
|
287
|
+
- [marked-cjk-friendly](https://npmjs.com/package/marked-cjk-friendly) [](https://npmjs.com/package/marked-cjk-friendly)  [](https://npmjs.com/package/marked-cjk-friendly) [](https://npmjs.com/package/marked-cjk-friendly) [](https://socket.dev/npm/package/marked-cjk-friendly) [\[Snyk Security\]](https://security.snyk.io/package/npm/marked-cjk-friendly)
|
|
218
288
|
|
|
219
289
|
## Contributing / <span lang="ja">貢献</span> / <span lang="zh-Hans-CN">贡献</span> / <span lang="ko">기여</span>
|
|
220
290
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
//#region src/index.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Make Markdown emphasis (`**`) in CommonMark more friendly with Chinese, Japanese, and Korean (CJK).
|
|
4
|
+
*
|
|
5
|
+
* This plugin supports both parsing and serializing. If you want to support only one of them, it is recommended to use {@linkcode remarkCjkFriendlyParseOnly} (`remark-cjk-friendly/parseOnly`) or {@linkcode remarkCjkFriendlySerializeOnly} (`remark-cjk-friendly/serializeOnly`) instead to minimize bundled dependencies.
|
|
4
6
|
*/
|
|
5
7
|
declare function remarkCjkFriendly(this: unknown): void;
|
|
6
8
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import remarkCjkFriendlyParseOnly from "./parseOnly.js";
|
|
2
|
+
import remarkCjkFriendlySerializeOnly from "./serializeOnly.js";
|
|
2
3
|
|
|
3
4
|
//#region src/index.ts
|
|
4
5
|
/**
|
|
5
6
|
* Make Markdown emphasis (`**`) in CommonMark more friendly with Chinese, Japanese, and Korean (CJK).
|
|
7
|
+
*
|
|
8
|
+
* This plugin supports both parsing and serializing. If you want to support only one of them, it is recommended to use {@linkcode remarkCjkFriendlyParseOnly} (`remark-cjk-friendly/parseOnly`) or {@linkcode remarkCjkFriendlySerializeOnly} (`remark-cjk-friendly/serializeOnly`) instead to minimize bundled dependencies.
|
|
6
9
|
*/
|
|
7
10
|
function remarkCjkFriendly() {
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
remarkCjkFriendlyParseOnly.call(this);
|
|
12
|
+
remarkCjkFriendlySerializeOnly.call(this);
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
//#endregion
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/parseOnly.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Make Markdown emphasis (`**`) in CommonMark more friendly with Chinese, Japanese, and Korean (CJK).
|
|
4
|
+
*
|
|
5
|
+
* This plugin only supports parsing. If you have been using {@linkcode remarkCjkFriendly} (`remark-cjk-friendly`) since v2.0.1 or earlier, it is recommended to migrate to this to minimize bundled dependencies.
|
|
6
|
+
*/
|
|
7
|
+
declare function remarkCjkFriendlyParseOnly(this: unknown): void;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { remarkCjkFriendlyParseOnly as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cjkFriendlyExtension } from "micromark-extension-cjk-friendly";
|
|
2
|
+
|
|
3
|
+
//#region src/parseOnly.ts
|
|
4
|
+
/**
|
|
5
|
+
* Make Markdown emphasis (`**`) in CommonMark more friendly with Chinese, Japanese, and Korean (CJK).
|
|
6
|
+
*
|
|
7
|
+
* This plugin only supports parsing. If you have been using {@linkcode remarkCjkFriendly} (`remark-cjk-friendly`) since v2.0.1 or earlier, it is recommended to migrate to this to minimize bundled dependencies.
|
|
8
|
+
*/
|
|
9
|
+
function remarkCjkFriendlyParseOnly() {
|
|
10
|
+
const data = this.data();
|
|
11
|
+
(data.micromarkExtensions || (data.micromarkExtensions = [])).push(cjkFriendlyExtension());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { remarkCjkFriendlyParseOnly as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/serializeOnly.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Make Markdown emphasis (`**`) in CommonMark more friendly with Chinese, Japanese, and Korean (CJK).
|
|
4
|
+
*
|
|
5
|
+
* This plugin only supports serializing.
|
|
6
|
+
*/
|
|
7
|
+
declare function remarkCjkFriendlySerializeOnly(this: unknown): void;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { remarkCjkFriendlySerializeOnly as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cjkFriendlyToMarkdown } from "mdast-util-to-markdown-cjk-friendly";
|
|
2
|
+
|
|
3
|
+
//#region src/serializeOnly.ts
|
|
4
|
+
/**
|
|
5
|
+
* Make Markdown emphasis (`**`) in CommonMark more friendly with Chinese, Japanese, and Korean (CJK).
|
|
6
|
+
*
|
|
7
|
+
* This plugin only supports serializing.
|
|
8
|
+
*/
|
|
9
|
+
function remarkCjkFriendlySerializeOnly() {
|
|
10
|
+
const data = this.data();
|
|
11
|
+
(data.toMarkdownExtensions || (data.toMarkdownExtensions = [])).push(cjkFriendlyToMarkdown());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { remarkCjkFriendlySerializeOnly as default };
|
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remark-cjk-friendly",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"default": "./dist/index.js"
|
|
9
9
|
},
|
|
10
|
+
"./parseOnly": {
|
|
11
|
+
"types": "./dist/parseOnly.d.ts",
|
|
12
|
+
"default": "./dist/parseOnly.js"
|
|
13
|
+
},
|
|
14
|
+
"./serializeOnly": {
|
|
15
|
+
"types": "./dist/serializeOnly.d.ts",
|
|
16
|
+
"default": "./dist/serializeOnly.js"
|
|
17
|
+
},
|
|
10
18
|
"./package.json": "./package.json"
|
|
11
19
|
},
|
|
12
20
|
"module": "./dist/index.js",
|
|
@@ -36,7 +44,8 @@
|
|
|
36
44
|
"description": "remark plugin to make Markdown emphasis (`**`) in CommonMark (and MDX) more friendly with Chinese, Japanese, and Korean (CJK)",
|
|
37
45
|
"sideEffects": false,
|
|
38
46
|
"dependencies": {
|
|
39
|
-
"micromark-extension-cjk-friendly": "2.0.1"
|
|
47
|
+
"micromark-extension-cjk-friendly": "2.0.1",
|
|
48
|
+
"mdast-util-to-markdown-cjk-friendly": "1.0.0"
|
|
40
49
|
},
|
|
41
50
|
"devDependencies": {
|
|
42
51
|
"@mdx-js/mdx": "^3.1.1",
|
|
@@ -62,8 +71,8 @@
|
|
|
62
71
|
"scripts": {
|
|
63
72
|
"build": "tsdown",
|
|
64
73
|
"build:lib": "tsdown",
|
|
65
|
-
"dev": "tsdown --watch",
|
|
66
|
-
"dev:lib": "tsdown --watch",
|
|
74
|
+
"dev": "tsdown --watch --sourcemaps",
|
|
75
|
+
"dev:lib": "tsdown --watch --sourcemaps",
|
|
67
76
|
"test": "vitest run",
|
|
68
77
|
"test:lib": "vitest run",
|
|
69
78
|
"test:up": "vitest -u",
|