@wenyan-md/core 1.0.4 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenyan-md/core",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Core library for Wenyan markdown rendering & publishing",
5
5
  "author": "Lei <caol64@gmail.com> (https://github.com/caol64)",
6
6
  "license": "Apache-2.0",
@@ -17,14 +17,27 @@
17
17
  "files": [
18
18
  "dist"
19
19
  ],
20
- "main": "./dist/core.js",
21
- "module": "./dist/core.js",
22
20
  "exports": {
23
- ".": "./dist/core.js",
24
- "./publish": "./dist/publish.js",
25
- "./wrapper": "./dist/wrapper.js",
26
- "./theme": "./dist/theme.js",
27
- "./hltheme": "./dist/hltheme.js"
21
+ ".": {
22
+ "import": "./dist/core.js",
23
+ "browser": "./dist/browser/wenyan-core.js"
24
+ },
25
+ "./publish": {
26
+ "import": "./dist/publish.js",
27
+ "types": "./dist/types/publish.d.ts"
28
+ },
29
+ "./wrapper": {
30
+ "import": "./dist/wrapper.js",
31
+ "types": "./dist/types/wrapper.d.ts"
32
+ },
33
+ "./theme": {
34
+ "import": "./dist/theme.js",
35
+ "types": "./dist/types/theme.d.ts"
36
+ },
37
+ "./hltheme": {
38
+ "import": "./dist/hltheme.js",
39
+ "types": "./dist/types/hltheme.d.ts"
40
+ }
28
41
  },
29
42
  "devDependencies": {
30
43
  "@types/css-tree": "^2.3.10",
@@ -48,8 +61,10 @@
48
61
  "scripts": {
49
62
  "dev": "vite build --watch",
50
63
  "build": "vite build && tsc",
51
- "testMain": "vitest run main.test.js",
52
- "testWrapper": "vitest run wrapper.test.js",
53
- "testPublish": "vitest run publish.test.js"
64
+ "build:browser": "vite build --config vite.config.browser.ts",
65
+ "build:all": "pnpm build && pnpm build:browser",
66
+ "test:main": "pnpm build && vitest run main.test.js",
67
+ "test:wrapper": "pnpm build && vitest run wrapper.test.js",
68
+ "test:publish": "pnpm build && vitest run publish.test.js"
54
69
  }
55
70
  }
@@ -1 +0,0 @@
1
- export {};