diff --git a/bun.lockb b/bun.lockb index a9013dc..015b849 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 46be4e7..86603a5 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "cypress-codegen", "packageManager": "bun@1.1.17", - "main": "dist/index.mjs", - "types": "dist/index.d.mts", + "main": "dist/index.js", + "types": "dist/index.d.ts", "bin": { - "cypress-codegen": "dist/cli.mjs" + "cypress-codegen": "dist/cli.js" }, "files": [ "dist", @@ -24,7 +24,7 @@ "@babel/types": "7.24.7", "@babel/generator": "7.24.7", "@types/babel__generator": "7.6.8", - "chalk": "5.3.0", + "chalk": "4.1.2", "commander": "12.1.0", "glob": "10.4.2", "prettier": "3.3.2" @@ -52,7 +52,7 @@ "vite": "5.3.1" }, "scripts": { - "build": "tsup src/index.ts src/cli.ts --clean --dts --format esm --splitting false", + "build": "tsup src/index.ts src/cli.ts --clean --dts --format cjs", "cypress:open": "cypress open", "cypress:component": "cypress run --component", "cypress:e2e": "cypress run", diff --git a/src/cli.ts b/src/cli.ts index ab2e803..884e704 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node /* eslint-disable no-console */ -import chalk from "chalk"; +import * as chalk from "chalk"; import { program, Option } from "commander"; import { codegen } from "./codegen";