Skip to content

Commit 458861e

Browse files
committed
add external
1 parent 042d9c1 commit 458861e

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
node-version: 24
3535
command: |
3636
npm install
37+
npm run lint
3738
npm run typecheck
3839
npm run build
3940
npm run prepublishOnly

ecosystem-ci/patch-project.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ async function patchCnpmcore() {
124124
}
125125
}
126126

127-
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2) + '\n');
127+
const packageJsonString = JSON.stringify(packageJson, null, 2) + '\n';
128+
console.log(packageJsonString);
129+
fs.writeFileSync(packageJsonPath, packageJsonString);
128130
}
129131

130132
switch (project) {

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"type": "git",
99
"url": "git+https://github.com/eggjs/egg.git"
1010
},
11+
"files": [
12+
"README.md"
13+
],
1114
"type": "module",
1215
"scripts": {
1316
"clean-dist": "pnpm -r --parallel exec rimraf dist",

tegg/plugin/ajv/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,8 @@
5959
"@eggjs/tegg-config": "workspace:*",
6060
"@eggjs/tegg-plugin": "workspace:*",
6161
"@types/node": "catalog:",
62-
"egg": "workspace:*",
6362
"typescript": "catalog:"
6463
},
65-
"peerDependencies": {
66-
"egg": "workspace:*"
67-
},
6864
"engines": {
6965
"node": ">=22.18.0"
7066
},

tsdown.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export default defineConfig({
44
// Workspace configuration - builds all library packages from root
55
workspace: {
66
include: ['packages/*', 'plugins/*', 'tools/*', 'tegg/core/*', 'tegg/plugin/*', 'tegg/standalone/*'],
7+
// FIXME: auto mode is not working, rolldown was hang and cpu 400% when using auto mode
8+
// include: 'auto',
79
exclude: [
810
'packages/tsconfig', // Config-only package, no src to build
911
],
@@ -14,7 +16,7 @@ export default defineConfig({
1416
unused: {
1517
level: 'error',
1618
},
17-
dts: true,
19+
// dts: true,
1820
exports: {
1921
devExports: true,
2022
},
@@ -27,4 +29,5 @@ export default defineConfig({
2729
// Default entry pattern - glob to include all source files
2830
entry: 'src/**/*.ts',
2931
skipNodeModulesBundle: true,
32+
external: [/^@eggjs\//, 'egg'],
3033
});

0 commit comments

Comments
 (0)