Skip to content

Commit 9d6b2c5

Browse files
authored
升级鸿蒙 SDK 项目版本 & 改进 monorepo 结构 (#648)
* 升级鸿蒙 SDK 项目版本 * 优化 monorepo 结构 * update package script * update examples
1 parent f366200 commit 9d6b2c5

Some content is hidden

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

84 files changed

+19923
-13442
lines changed
File renamed without changes.
File renamed without changes.

.github/workflows/dev-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/setup-node@v3
1111
with:
1212
cache: 'npm'
13-
node-version: 16
13+
node-version: 20
1414
- run: |
1515
npm install
1616
npm run lint
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/setup-node@v3
2222
with:
2323
cache: 'npm'
24-
node-version: 16
24+
node-version: 20
2525
- run: |
2626
npm install
2727
npm run test

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 16
14+
node-version: 20
1515
registry-url: https://registry.npmjs.org/
1616
- run: |
1717
npm install
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/checkout@v3
2727
- uses: actions/setup-node@v3
2828
with:
29-
node-version: 16
29+
node-version: 20
3030
registry-url: https://registry.npmjs.org/
3131
- run: |
3232
npm install
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v3
4242
- uses: actions/setup-node@v3
4343
with:
44-
node-version: 16
44+
node-version: 20
4545
registry-url: https://registry.npmjs.org/
4646
- run: |
4747
npm install

packages/jest.config.js renamed to jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function getProjectConfig(name) {
55
transform: {
66
".ts": 'ts-jest'
77
},
8-
testMatch: [`<rootDir>/${name}/src/**/*.test.ts`],
8+
testMatch: [`<rootDir>/packages/${name}/src/**/*.test.ts`],
99
}
1010
}
1111

0 commit comments

Comments
 (0)