Skip to content

Commit

Permalink
依存パッケージのインストール処理を改修
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Jul 5, 2023
1 parent d6ed06f commit 996a562
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,11 @@ const install = function (root, app_name, template, dependencies)
for (let idx = 0; idx < keys.length; ++idx) {

const name = keys[idx];
packageJson.dependencies[name] = templateDependencies[name];

if (templateDependencies[name] === "*") {
dependencies.push(name);
} else {
packageJson.dependencies[name] = templateDependencies[name];
}
}

fs.writeFileSync(
Expand Down Expand Up @@ -384,7 +387,6 @@ const createApp = function (app_name, template = "@next2d/framework-template")

install(root, appName, template, [
"@next2d/framework",
"@next2d/webpack-auto-loader-plugin",
"@next2d/env",
"electron",
"webpack",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-next2d-app",
"version": "1.2.3",
"version": "1.2.4",
"description": "Create Next2D apps with no build configuration.",
"author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
"license": "MIT",
Expand Down

0 comments on commit 996a562

Please sign in to comment.