diff --git a/.changeset/lucky-jokes-compare.md b/.changeset/lucky-jokes-compare.md new file mode 100644 index 000000000..d9359f0bd --- /dev/null +++ b/.changeset/lucky-jokes-compare.md @@ -0,0 +1,5 @@ +--- +"@tma.js/create-mini-app": patch +--- + +Fix module type diff --git a/packages/create-mini-app/package.json b/packages/create-mini-app/package.json index 1b73c7dd2..e1e29c43a 100644 --- a/packages/create-mini-app/package.json +++ b/packages/create-mini-app/package.json @@ -23,7 +23,7 @@ "files": [ "dist" ], - "bin": "dist/index.cjs", + "bin": "dist/index.js", "scripts": { "lint": "eslint src", "lint:fix": "pnpm run lint --fix", diff --git a/packages/create-mini-app/vite.config.ts b/packages/create-mini-app/vite.config.ts index 285a48e8e..b0c154a12 100644 --- a/packages/create-mini-app/vite.config.ts +++ b/packages/create-mini-app/vite.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ ssr: true, lib: { entry: 'src/index.ts', - formats: ['cjs'], + formats: ['es'], fileName: 'index', }, },