Skip to content

Commit

Permalink
fix: 初始化js项目,有tsconfig.json文件 #239
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed Jun 9, 2023
1 parent 77ee6b4 commit 0871807
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ const fieldMap = async () => {
const ci = async () => {
try {
await fieldMap();
// 删除 tsconfig.json
const tsConfigPath = path.resolve(
__dirname,
'../examples/basicjs/tsconfig.json',
);
FS.remove(tsConfigPath);
// 更改 package.json name 名称
const pagPath = path.resolve(__dirname, '../examples/basicjs/package.json');
const pagContent = fs.readFileSync(pagPath, { encoding: 'utf-8' });
Expand Down

0 comments on commit 0871807

Please sign in to comment.