@next2d/builder 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -135,10 +135,11 @@ const loadConfig = () => {
135
135
  // overwride
136
136
  fs.writeFileSync(`${process.cwd()}/package.json`, JSON.stringify(packageJson, null, 2));
137
137
  }
138
+ const ext = fs.existsSync(`${process.cwd()}/vite.config.ts`) ? "ts" : "js";
138
139
  const config = await loadConfigFromFile({
139
140
  "command": "build",
140
141
  "mode": "build"
141
- }, `${process.cwd()}/vite.config.ts`);
142
+ }, `${process.cwd()}/vite.config.${ext}`);
142
143
  // update config
143
144
  $configObject = config;
144
145
  $outDir = $configObject.config?.build?.outDir || "dist";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/builder",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Multi-platform builder for Next2d Framework, supporting export to various platforms such as macOS, Windows, iOS, Android and Web(HTML)",
5
5
  "author": "Toshiyuki Ienaga <ienaga@next2d.app>",
6
6
  "license": "MIT",