Skip to content

Commit d09373a

Browse files
committed
fix(bug): Remove Redundant package.json Generation
1 parent a49d56d commit d09373a

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

generator/module.generator.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ module.exports = async function (name) {
1919
// Create directories
2020
dirs.forEach((dir) => fs.ensureDirSync(path.join(basePath, dir)));
2121

22-
// Generate scoped package.json for ESM support
23-
fs.writeJsonSync(path.join(basePath, "package.json"), { type: "module" }, { spaces: 2 });
2422

2523
const templateData = {
2624
name,

generator/resource.generator.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ module.exports = async function (name) {
1818

1919
dirs.forEach((dir) => fs.ensureDirSync(path.join(basePath, dir)));
2020

21-
// Generate scoped package.json for ESM support
22-
fs.writeJsonSync(path.join(basePath, "package.json"), { type: "module" }, { spaces: 2 });
2321

2422
const templateData = {
2523
name,

0 commit comments

Comments
 (0)