From 143fac48f9dfc24914da74986f0d9f3f3c1714b1 Mon Sep 17 00:00:00 2001 From: Vladislav Kibenko Date: Fri, 8 Mar 2024 17:08:26 +0300 Subject: [PATCH 1/2] fix(create-mini-app): fix module type --- packages/create-mini-app/package.json | 2 +- packages/create-mini-app/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', }, }, From c7ddb67447770e1142ee69a6712b86a63e751f2c Mon Sep 17 00:00:00 2001 From: Vladislav Kibenko Date: Fri, 8 Mar 2024 17:08:49 +0300 Subject: [PATCH 2/2] docs(changeset): Fix module type --- .changeset/lucky-jokes-compare.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lucky-jokes-compare.md 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