@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 +6 -16
- package/tsconfig.json +3 -2
- package/vite.config.ts +1 -7
- package/dict/index.ts +0 -9
- package/dist/dict/chars.js +0 -1
- package/dist/dict/chars.mjs +0 -4
- package/dist/dict/complete.js +0 -1
- package/dist/dict/complete.mjs +0 -4
- package/dist/dict/index.js +0 -1
- package/dist/dict/index.mjs +0 -11
- package/dist/dict/modern.js +0 -1
- package/dist/dict/modern.mjs +0 -4
- package/types/src/index.d.ts +0 -6
- /package/dist/{json/chars.json.js → chars.js} +0 -0
- /package/dist/{json/chars.json.mjs → chars.mjs} +0 -0
- /package/dist/{json/complete.json.js → complete.js} +0 -0
- /package/dist/{json/complete.json.mjs → complete.mjs} +0 -0
- /package/dist/{json/modern.json.js → modern.js} +0 -0
- /package/dist/{json/modern.json.mjs → modern.mjs} +0 -0
- /package/{dict → src}/chars.ts +0 -0
- /package/{dict → src}/complete.ts +0 -0
- /package/{dict → src}/modern.ts +0 -0
- /package/{dict → src}/types.ts +0 -0
- /package/types/{src/chars.d.ts → chars.d.ts} +0 -0
- /package/types/{src/complete.d.ts → complete.d.ts} +0 -0
- /package/types/{src/modern.d.ts → modern.d.ts} +0 -0
- /package/types/{src/types.d.ts → types.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinyin-pro/data",
|
|
3
|
-
"version": "1.2.0
|
|
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
|
-
"
|
|
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
|
-
"
|
|
18
|
+
"types": "./types/*.d.ts",
|
|
19
|
+
"default": "./dist/*.mjs"
|
|
31
20
|
},
|
|
32
21
|
"require": {
|
|
33
|
-
"
|
|
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": ["
|
|
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: ['
|
|
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
package/dist/dict/chars.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("../json/chars.json.js");module.exports=r;
|
package/dist/dict/chars.mjs
DELETED
package/dist/dict/complete.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("../json/complete.json.js");module.exports=e;
|
package/dist/dict/complete.mjs
DELETED
package/dist/dict/index.js
DELETED
|
@@ -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;
|
package/dist/dict/index.mjs
DELETED
package/dist/dict/modern.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("../json/modern.json.js");module.exports=e;
|
package/dist/dict/modern.mjs
DELETED
package/types/src/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dict → src}/chars.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/{dict → src}/modern.ts
RENAMED
|
File without changes
|
/package/{dict → src}/types.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|