Skip to content

Commit 385ad67

Browse files
authored
chore(uniapp): sync npm version (#4188)
* chore(uni): sync npm version * chore: fix ci * chore: fix ci
1 parent 9af6776 commit 385ad67

4 files changed

Lines changed: 276 additions & 277 deletions

File tree

.github/workflows/pr-compressed-size.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
install-script: 'pnpm install --no-frozen-lockfile'
3636
build-script: 'uniapp build:npm'
3737
repo-token: '${{ secrets.GITHUB_TOKEN }}'
38-
pattern: './packages/tdesign-uniapp/npm_dist/**/*.{js,ts,vue,less,css}'
38+
pattern: './packages/tdesign-uniapp/dist/**/*.{js,ts,vue,less,css}'
3939
comment-key: uniapp
4040

4141
uniapp-chat-size:
@@ -52,5 +52,5 @@ jobs:
5252
install-script: 'pnpm install --no-frozen-lockfile'
5353
build-script: 'uniapp build:npm'
5454
repo-token: '${{ secrets.GITHUB_TOKEN }}'
55-
pattern: './packages/tdesign-uniapp-chat/npm_dist/**/*.{js,ts,vue,less,css}'
55+
pattern: './packages/tdesign-uniapp-chat/dist/**/*.{js,ts,vue,less,css}'
5656
comment-key: uniapp-chat

packages/tdesign-uniapp-chat/package.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,62 @@
11
{
22
"name": "tdesign-uniapp-chat",
3-
"version": "0.1.1",
4-
"typings": "./npm_dist/types/index.d.ts",
3+
"version": "0.1.3",
4+
"typings": "./dist/types/index.d.ts",
55
"exports": {
6-
"./*": "./npm_dist/*",
6+
"./*": "./dist/*",
77
"./attachments/attachments.vue": {
8-
"types": "./npm_dist/types/attachments.d.ts",
9-
"import": "./npm_dist/attachments/attachments.vue",
10-
"default": "./npm_dist/attachments/attachments.vue"
8+
"types": "./dist/types/attachments.d.ts",
9+
"import": "./dist/attachments/attachments.vue",
10+
"default": "./dist/attachments/attachments.vue"
1111
},
1212
"./chat-actionbar/chat-actionbar.vue": {
13-
"types": "./npm_dist/types/chat-actionbar.d.ts",
14-
"import": "./npm_dist/chat-actionbar/chat-actionbar.vue",
15-
"default": "./npm_dist/chat-actionbar/chat-actionbar.vue"
13+
"types": "./dist/types/chat-actionbar.d.ts",
14+
"import": "./dist/chat-actionbar/chat-actionbar.vue",
15+
"default": "./dist/chat-actionbar/chat-actionbar.vue"
1616
},
1717
"./chat-content/chat-content.vue": {
18-
"types": "./npm_dist/types/chat-content.d.ts",
19-
"import": "./npm_dist/chat-content/chat-content.vue",
20-
"default": "./npm_dist/chat-content/chat-content.vue"
18+
"types": "./dist/types/chat-content.d.ts",
19+
"import": "./dist/chat-content/chat-content.vue",
20+
"default": "./dist/chat-content/chat-content.vue"
2121
},
2222
"./chat-list/chat-list.vue": {
23-
"types": "./npm_dist/types/chat-list.d.ts",
24-
"import": "./npm_dist/chat-list/chat-list.vue",
25-
"default": "./npm_dist/chat-list/chat-list.vue"
23+
"types": "./dist/types/chat-list.d.ts",
24+
"import": "./dist/chat-list/chat-list.vue",
25+
"default": "./dist/chat-list/chat-list.vue"
2626
},
2727
"./chat-loading/chat-loading.vue": {
28-
"types": "./npm_dist/types/chat-loading.d.ts",
29-
"import": "./npm_dist/chat-loading/chat-loading.vue",
30-
"default": "./npm_dist/chat-loading/chat-loading.vue"
28+
"types": "./dist/types/chat-loading.d.ts",
29+
"import": "./dist/chat-loading/chat-loading.vue",
30+
"default": "./dist/chat-loading/chat-loading.vue"
3131
},
3232
"./chat-markdown/chat-markdown.vue": {
33-
"types": "./npm_dist/types/chat-markdown.d.ts",
34-
"import": "./npm_dist/chat-markdown/chat-markdown.vue",
35-
"default": "./npm_dist/chat-markdown/chat-markdown.vue"
33+
"types": "./dist/types/chat-markdown.d.ts",
34+
"import": "./dist/chat-markdown/chat-markdown.vue",
35+
"default": "./dist/chat-markdown/chat-markdown.vue"
3636
},
3737
"./chat-message/chat-message.vue": {
38-
"types": "./npm_dist/types/chat-message.d.ts",
39-
"import": "./npm_dist/chat-message/chat-message.vue",
40-
"default": "./npm_dist/chat-message/chat-message.vue"
38+
"types": "./dist/types/chat-message.d.ts",
39+
"import": "./dist/chat-message/chat-message.vue",
40+
"default": "./dist/chat-message/chat-message.vue"
4141
},
4242
"./chat-sender/chat-sender.vue": {
43-
"types": "./npm_dist/types/chat-sender.d.ts",
44-
"import": "./npm_dist/chat-sender/chat-sender.vue",
45-
"default": "./npm_dist/chat-sender/chat-sender.vue"
43+
"types": "./dist/types/chat-sender.d.ts",
44+
"import": "./dist/chat-sender/chat-sender.vue",
45+
"default": "./dist/chat-sender/chat-sender.vue"
4646
},
4747
"./chat-thinking/chat-thinking.vue": {
48-
"types": "./npm_dist/types/chat-thinking.d.ts",
49-
"import": "./npm_dist/chat-thinking/chat-thinking.vue",
50-
"default": "./npm_dist/chat-thinking/chat-thinking.vue"
48+
"types": "./dist/types/chat-thinking.d.ts",
49+
"import": "./dist/chat-thinking/chat-thinking.vue",
50+
"default": "./dist/chat-thinking/chat-thinking.vue"
5151
}
5252
},
5353
"publishConfig": {
5454
"registry": "https://registry.npmjs.org/"
5555
},
5656
"files": [
57-
"npm_dist",
57+
"dist",
5858
"global.d.ts",
59+
"LICENSE",
5960
"README.md",
6061
"CHANGELOG.md"
6162
],
@@ -70,8 +71,7 @@
7071
"site": "pnpm --filter=\"./site\" build",
7172
"site:dev": "pnpm --filter=\"./site\" run dev",
7273
"site:preview": "pnpm --filter=\"./site\" run site:preview",
73-
"type-check": "vue-tsc --noEmit",
74-
"publish": "cd npm_dist && npm publish"
74+
"type-check": "vue-tsc --noEmit"
7575
},
7676
"devDependencies": {
7777
"@commitlint/cli": "^12.0.1",

packages/tdesign-uniapp/example/script/release/config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@ const path = require('path');
33
const PACKAGES_ROOT = path.resolve(__dirname, '../../../../');
44

55
const config = {
6-
targetDir: path.resolve(PACKAGES_ROOT, 'tdesign-uniapp/npm_dist'),
6+
targetDir: path.resolve(PACKAGES_ROOT, 'tdesign-uniapp/dist'),
77
sourceDir: path.resolve(PACKAGES_ROOT, 'uniapp-components'),
88
sourceGlob: path.resolve(PACKAGES_ROOT, 'uniapp-components/**/*'),
99

10-
chatTargetDir: path.resolve(PACKAGES_ROOT, 'tdesign-uniapp-chat/npm_dist'),
10+
chatTargetDir: path.resolve(PACKAGES_ROOT, 'tdesign-uniapp-chat/dist'),
1111
chatSourceDir: path.resolve(PACKAGES_ROOT, 'uniapp-pro-components/chat'),
1212
chatSourceGlob: path.resolve(PACKAGES_ROOT, 'uniapp-pro-components/chat/**/*'),
1313

1414
demoDir: path.resolve(__dirname, '../../src/pages-more'),
1515
};
1616

17-
1817
module.exports = {
1918
config,
2019
PACKAGES_ROOT,

0 commit comments

Comments
 (0)