-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support cjs and esm both by tshy (#27)
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **Project Configuration** - Updated Node.js version support to 18, 20, and 22 - Updated TypeScript configuration to ES2022 and NodeNext module resolution - Updated minimum Node.js requirement to version 18 - Added MIT license - **Dependencies** - Upgraded several development dependencies - Updated testing and build tools to latest versions - **Documentation** - Added Contributors section to README - Updated project requirements documentation - **Maintenance** - Updated `.gitignore` to exclude `package-lock.json` - Removed pull request template - Introduced a new configuration file for unit tests <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
20 changed files
with
69 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ logs | |
run | ||
*.sw* | ||
*.un~ | ||
package-lock.json | ||
.package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,5 @@ npm start | |
|
||
### Requirement | ||
|
||
- Node.js >= 16.x | ||
- Typescript >= 4.x | ||
- Node.js >= 18.x | ||
- Typescript >= 5.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ config/**/*.js | |
app/**/*.map | ||
test/**/*.map | ||
config/**/*.map | ||
package-lock.json | ||
.package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"eggModule": { | ||
"name": "foo" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { EggAppConfig, PowerPartial } from 'egg'; | ||
|
||
export default () => { | ||
const config: PowerPartial<EggAppConfig> = {}; | ||
const config = {} as PowerPartial<EggAppConfig>; | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { EggAppConfig, PowerPartial } from 'egg'; | ||
|
||
export default () => { | ||
const config: PowerPartial<EggAppConfig> = {}; | ||
const config = {} as PowerPartial<EggAppConfig>; | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { EggAppConfig, PowerPartial } from 'egg'; | ||
|
||
export default () => { | ||
const config = {} as PowerPartial<EggAppConfig>; | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,13 @@ | |
"test": "npm run lint -- --fix && npm run test-boilerplate", | ||
"ci": "npm run lint && npm run ci-boilerplate", | ||
"test-boilerplate": "npm run build && npm run install-deps && cd dist && npm test", | ||
"test-boilerplate-from-cnpm": "npm run build && npm run install-deps-from-cnpm && cd dist && npm test", | ||
"ci-boilerplate": "npm run build && npm run install-deps && cd dist && npm run ci", | ||
"ci-boilerplate-from-cnpm": "npm run build && npm run install-deps-from-cnpm && cd dist && npm run ci", | ||
"clean": "rm -rf dist", | ||
"build": "npm run clean && egg-init dist --force --silent --template=./", | ||
"install-deps": "cd dist && npm i" | ||
"install-deps": "cd dist && npm i", | ||
"install-deps-from-cnpm": "cd dist && cnpm i" | ||
}, | ||
"homepage": "https://github.com/eggjs/egg-boilerplate-ts", | ||
"bugs": "https://github.com/eggjs/egg/issues", | ||
|
@@ -21,7 +24,8 @@ | |
"author": "TZ <[email protected]>", | ||
"devDependencies": { | ||
"egg-init": "^3.0.2", | ||
"eslint": "^8.34.0", | ||
"eslint-config-egg": "13" | ||
} | ||
"eslint": "8", | ||
"eslint-config-egg": "14" | ||
}, | ||
"license": "MIT" | ||
} |