Skip to content

Commit

Permalink
feat: create tools build config
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Oct 14, 2024
1 parent 3cdead3 commit 80feae1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 471 deletions.
4 changes: 0 additions & 4 deletions packages/toolkit/create/bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ if (process.env.CODESMITH_ENV) {
env = process.env.CODESMITH_ENV;
}

require('@modern-js/codesmith-global');

global.CODESMITH_PREPARE_GLOBAL = true;

if (env === 'development') {
require('ts-node').register({ project });
}
Expand Down
8 changes: 5 additions & 3 deletions packages/toolkit/create/modern.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { generatorBuildConfig } = require('@scripts/build');

module.exports = {
buildConfig: generatorBuildConfig,
buildConfig: {
autoExternal: false,
dts: false,
sideEffects: false,
},
};
3 changes: 0 additions & 3 deletions packages/toolkit/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
"build": "modern-lib build",
"test": "jest --passWithNoTests"
},
"dependencies": {
"@modern-js/codesmith-global":"2.5.2-alpha.3"
},
"devDependencies": {
"commander": "10.0.0",
"@modern-js/codesmith": "2.5.2",
Expand Down
Loading

0 comments on commit 80feae1

Please sign in to comment.