Skip to content

Commit b911e7d

Browse files
committed
chore: 修改目录结构
1 parent d9d22c2 commit b911e7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+266
-710
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

+55-8
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,80 @@
11
{
2-
"name": "@uni-ku/macros",
2+
"name": "@uni-ku/define-page",
33
"type": "module",
44
"version": "0.1.0",
5-
"description": "",
6-
"author": "Edwin Xu",
5+
"description": "Define uniapp pages.json dynamically.",
6+
"author": "Edwin Xu <[email protected]>",
77
"license": "MIT",
8+
"homepage": "https://github.com/uni-ku/define-page",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/uni-ku/define-page.git"
12+
},
13+
"bugs": "https://github.com/uni-ku/define-page/issues",
814
"keywords": [
915
"uniapp",
1016
"uni-app",
11-
"macros"
17+
"pages.json",
18+
"macros",
19+
"definePage"
20+
],
21+
"sideEffects": false,
22+
"exports": {
23+
".": {
24+
"import": {
25+
"types": "./index.d.ts",
26+
"default": "./dist/index.mjs"
27+
},
28+
"require": {
29+
"types": "./index.d.ts",
30+
"default": "./dist/index.cjs"
31+
}
32+
},
33+
"./client": {
34+
"types": "./client.d.ts"
35+
}
36+
},
37+
"main": "./dist/index.cjs",
38+
"module": "./dist/index.mjs",
39+
"types": "./index.d.ts",
40+
"files": [
41+
"client.d.ts",
42+
"dist",
43+
"index.d.ts"
1244
],
1345
"scripts": {
14-
"build": "rimraf --glob packages/*/dist && pnpm -r --filter=./packages/* run build",
15-
"publish": "pnpm build && changeset publish",
16-
"dev:h5": "pnpm build && pnpm --filter=./packages/playground dev:h5",
17-
"dev:mp-weixin": "pnpm build && pnpm --filter=./packages/playground dev:mp-weixin",
46+
"clean": "rimraf dist",
47+
"build": "unbuild",
48+
"stub": "unbuild --stub",
1849
"typecheck": "tsc -p . --noEmit",
1950
"lint": "eslint .",
2051
"lint:fix": "pnpm lint --fix",
2152
"test": "vitest"
2253
},
54+
"dependencies": {
55+
"@antfu/utils": "^0.7.7",
56+
"@babel/generator": "^7.23.6",
57+
"@babel/traverse": "^7.24.1",
58+
"@babel/types": "^7.24.0",
59+
"@vue/compiler-sfc": "^3.4.21",
60+
"ast-kit": "^0.12.1",
61+
"chokidar": "^3.6.0",
62+
"debug": "^4.3.4",
63+
"fast-glob": "^3.3.2",
64+
"magic-string": "^0.30.8",
65+
"tsx": "^4.7.1",
66+
"unconfig": "^0.3.11"
67+
},
2368
"devDependencies": {
2469
"@antfu/eslint-config": "^3.12.0",
2570
"@antfu/utils": "^0.7.7",
2671
"@babel/generator": "^7.23.6",
2772
"@changesets/changelog-github": "^0.5.0",
2873
"@changesets/cli": "^2.27.1",
2974
"@dcloudio/types": "^3.4.8",
75+
"@types/babel__core": "^7.20.5",
3076
"@types/babel__generator": "^7.6.8",
77+
"@types/babel__traverse": "^7.20.5",
3178
"@types/debug": "^4.1.12",
3279
"@types/node": "^20.11.28",
3380
"@typescript-eslint/eslint-plugin": "^8",

packages/pages-json/README.md

-216
This file was deleted.

packages/pages-json/package.json

-69
This file was deleted.

packages/pages-json/tsconfig.json

-5
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)