@pinyin-pro/data 1.2.0-beta.2 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinyin-pro/data",
3
- "version": "1.2.0-beta.2",
3
+ "version": "1.2.0",
4
4
  "description": "The data directory for pinyin-pro",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,25 +12,15 @@
12
12
  "url": "git+https://github.com/chinese-data/pinyin-pro-data.git"
13
13
  },
14
14
  "exports": {
15
- "./complete.json": "./json/complete.json",
16
- "./modern.json": "./json/modern.json",
17
- "./package.json": "./json/package.json",
18
- ".": {
19
- "import": {
20
- "types": "./types/index.d.ts",
21
- "default": "./dist/dict/index.mjs"
22
- },
23
- "require": {
24
- "types": "./types/index.d.ts",
25
- "default": "./dist/dict/index.js"
26
- }
27
- },
15
+ "./*.json": "./json/*.json",
28
16
  "./*": {
29
17
  "import": {
30
- "default": "./dist/dict/*.mjs"
18
+ "types": "./types/*.d.ts",
19
+ "default": "./dist/*.mjs"
31
20
  },
32
21
  "require": {
33
- "default": "./dist/dict/*.js"
22
+ "types": "./types/*.d.ts",
23
+ "default": "./dist/*.js"
34
24
  }
35
25
  }
36
26
  },
package/tsconfig.json CHANGED
@@ -17,8 +17,9 @@
17
17
  "forceConsistentCasingInFileNames": true,
18
18
  "useDefineForClassFields": false,
19
19
  "skipLibCheck": true,
20
- "resolveJsonModule": true
20
+ "resolveJsonModule": true,
21
+ "rootDir": "./src"
21
22
  },
22
- "include": ["dict/**/*.ts"],
23
+ "include": ["src/**/*.ts"],
23
24
  "references": [{ "path": "./tsconfig.node.json" }]
24
25
  }
package/vite.config.ts CHANGED
@@ -4,16 +4,10 @@ import { defineConfig } from 'vite';
4
4
  export default defineConfig({
5
5
  build: {
6
6
  lib: {
7
- entry: ['dict/index.ts'],
7
+ entry: ['src/chars.ts', 'src/modern.ts', 'src/complete.ts'],
8
8
  formats: ['es', 'cjs'],
9
9
  fileName: '[name]',
10
10
  },
11
- rollupOptions: {
12
- output: {
13
- preserveModules: true,
14
- preserveModulesRoot: './',
15
- },
16
- },
17
11
  minify: true,
18
12
  emptyOutDir: true,
19
13
  },
package/dict/index.ts DELETED
@@ -1,9 +0,0 @@
1
- import CharsDict from "./chars";
2
- import CompleteDict from "./complete";
3
- import ModernDict from "./modern";
4
-
5
- export default {
6
- CharsDict,
7
- CompleteDict,
8
- ModernDict
9
- }
@@ -1 +0,0 @@
1
- "use strict";const r=require("../json/chars.json.js");module.exports=r;
@@ -1,4 +0,0 @@
1
- import t from "../json/chars.json.mjs";
2
- export {
3
- t as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("../json/complete.json.js");module.exports=e;
@@ -1,4 +0,0 @@
1
- import e from "../json/complete.json.mjs";
2
- export {
3
- e as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("../json/chars.json.js"),r=require("../json/complete.json.js"),t=require("../json/modern.json.js"),c={CharsDict:e,CompleteDict:r,ModernDict:t};module.exports=c;
@@ -1,11 +0,0 @@
1
- import o from "../json/chars.json.mjs";
2
- import t from "../json/complete.json.mjs";
3
- import r from "../json/modern.json.mjs";
4
- const p = {
5
- CharsDict: o,
6
- CompleteDict: t,
7
- ModernDict: r
8
- };
9
- export {
10
- p as default
11
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("../json/modern.json.js");module.exports=e;
@@ -1,4 +0,0 @@
1
- import r from "../json/modern.json.mjs";
2
- export {
3
- r as default
4
- };
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- CharsDict: import("./types").SimpleDict;
3
- CompleteDict: import("./types").ComplexDict;
4
- ModernDict: import("./types").ComplexDict;
5
- };
6
- export default _default;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes