create-egg 4.1.0-beta.17 → 4.1.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineConfigFactory, type PartialEggConfig } from 'egg';
|
|
2
2
|
|
|
3
|
-
export default
|
|
3
|
+
export default defineConfigFactory(appInfo => {
|
|
4
4
|
const config = {
|
|
5
5
|
// use for cookie sign key, should change to your own and keep security
|
|
6
6
|
keys: appInfo.name + '_{{keys}}',
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"ci": "vitest run --coverage",
|
|
18
18
|
"postci": "npm run prepublishOnly && npm start && sleep 10 && npm stop && npm run clean",
|
|
19
19
|
"lint": "oxlint --type-aware",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
20
21
|
"tsc": "tsc",
|
|
21
22
|
"clean": "tsc -b --clean",
|
|
22
23
|
"prepublishOnly": "npm run clean && npm run tsc"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineConfigFactory, type PartialEggConfig } from 'egg';
|
|
2
2
|
|
|
3
|
-
export default
|
|
3
|
+
export default defineConfigFactory(appInfo => {
|
|
4
4
|
const config = {
|
|
5
5
|
// use for cookie sign key, should change to your own and keep security
|
|
6
6
|
keys: appInfo.name + '_{{keys}}',
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"ci": "npm run test:local -- --coverage",
|
|
18
18
|
"postci": "npm run prepublishOnly && npm start && sleep 10 && npm stop && npm run clean",
|
|
19
19
|
"lint": "oxlint --type-aware",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
20
21
|
"tsc": "tsc",
|
|
21
22
|
"clean": "tsc -b --clean",
|
|
22
23
|
"prepublishOnly": "npm run clean && npm run tsc"
|