Skip to content

Commit

Permalink
fix: 修复构建产物的类型文件中找不到第三方依赖类型的问题 (#432)
Browse files Browse the repository at this point in the history
* fix: 修复构建产物的类型文件中找不到第三方依赖类型的问题

* feat(@feflow/cli): 优化顶层导出,便于进行 ts module augmentation

* chore: 默认使用 Node 14 进行开发

---------

Co-authored-by: alexqxxu <[email protected]>
  • Loading branch information
xqxian and alexqxxu committed Mar 29, 2023
1 parent d47eb10 commit afd2578
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 129 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# an extra windows-x86 run:
include:
- os: windows-latest
node: 12
node: 14
architecture: x86
name: Node ${{ matrix.node }} - ${{ matrix.architecture }} on ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
14
86 changes: 23 additions & 63 deletions packages/feflow-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions packages/feflow-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
},
"devDependencies": {
"@oclif/dev-cli": "^1.22.2",
"@types/nedb": "^1.8.10"
},
"dependencies": {
"@feflow/feflow-plugin-devtool": "^0.4.2",
"@feflow/report": "^0.6.2",
"@types/abbrev": "^1.1.0",
"@types/bunyan": "^1.8.7",
"@types/command-line-usage": "^5.0.1",
Expand All @@ -48,16 +53,11 @@
"@types/lodash": "^4.14.161",
"@types/marked": "^4.0.3",
"@types/minimist": "^1.2.0",
"@types/nedb": "^1.8.10",
"@types/osenv": "^0.1.0",
"@types/ps-node": "^0.1.1",
"@types/request-promise": "^4.1.45",
"@types/semver": "^6.0.1",
"@types/yeoman-environment": "^2.10.1"
},
"dependencies": {
"@feflow/feflow-plugin-devtool": "^0.4.2",
"@feflow/report": "^0.6.2",
"@types/yeoman-environment": "^2.10.1",
"abbrev": "^1.1.1",
"axios": "^0.21.1",
"bunyan": "^1.8.14",
Expand Down
5 changes: 5 additions & 0 deletions packages/feflow-cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
import Feflow from './core';

// 命名导出便于插件开发者进行 ts module augmentation: https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation
// 因为 default 导出不能被 augment
export { Feflow };
// legacy default 导出,后续不建议
export default Feflow;

0 comments on commit afd2578

Please sign in to comment.