@unocss/extractor-mdc 66.5.10 → 66.5.11

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/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
- import { Extractor } from '@unocss/core';
1
+ import { Extractor } from "@unocss/core";
2
2
 
3
+ //#region src/index.d.ts
3
4
  declare function extractorMdc(): Extractor;
4
-
5
- export { extractorMdc as default };
5
+ //#endregion
6
+ export { extractorMdc as default };
package/dist/index.mjs CHANGED
@@ -1,14 +1,15 @@
1
+ //#region src/index.ts
1
2
  function extractorMdc() {
2
- return {
3
- name: "@unocss/extractor-mdc",
4
- async extract(ctx) {
5
- if (!/\.(?:md|mdc|markdown)$/i.test(ctx.id ?? ""))
6
- return;
7
- ctx.code.match(/\.[\w:/\-]+/g)?.forEach((c) => {
8
- ctx.extracted.add(c.slice(1));
9
- });
10
- }
11
- };
3
+ return {
4
+ name: "@unocss/extractor-mdc",
5
+ async extract(ctx) {
6
+ if (!/\.(?:md|mdc|markdown)$/i.test(ctx.id ?? "")) return;
7
+ ctx.code.match(/\.[\w:/\-]+/g)?.forEach((c) => {
8
+ ctx.extracted.add(c.slice(1));
9
+ });
10
+ }
11
+ };
12
12
  }
13
13
 
14
- export { extractorMdc as default };
14
+ //#endregion
15
+ export { extractorMdc as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/extractor-mdc",
3
3
  "type": "module",
4
- "version": "66.5.10",
4
+ "version": "66.5.11",
5
5
  "description": "UnoCSS extractor for MDC",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -28,16 +28,15 @@
28
28
  },
29
29
  "main": "./dist/index.mjs",
30
30
  "module": "./dist/index.mjs",
31
- "types": "./dist/index.d.ts",
31
+ "types": "./dist/index.d.mts",
32
32
  "files": [
33
33
  "dist"
34
34
  ],
35
35
  "devDependencies": {
36
- "@unocss/core": "66.5.10"
36
+ "@unocss/core": "66.5.11"
37
37
  },
38
38
  "scripts": {
39
- "build": "unbuild",
40
- "stub": "unbuild --stub",
41
- "test:attw": "attw --pack --config-path ../../.attw-esm-only.json"
39
+ "build": "tsdown --config-loader unrun",
40
+ "dev": "tsdown --config-loader unrun --watch"
42
41
  }
43
42
  }
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Extractor } from '@unocss/core';
2
-
3
- declare function extractorMdc(): Extractor;
4
-
5
- export { extractorMdc as default };