diff --git a/packages/auth/build.ts b/packages/auth/build.ts index cee4016df6f2..d3fde1614d16 100644 --- a/packages/auth/build.ts +++ b/packages/auth/build.ts @@ -19,7 +19,7 @@ await build({ await build({ buildOptions: { ...defaultBuildOptions, - tsconfig: 'tsconfig.build-cjs.json', + tsconfig: 'tsconfig.build.json', outdir: 'dist/cjs', packages: 'external', }, diff --git a/packages/auth/package.json b/packages/auth/package.json index 6b85c04ea6f9..f4827963d38e 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -78,7 +78,7 @@ "build": "tsx ./build.ts && yarn build:types", "build:pack": "yarn pack -o redwoodjs-auth.tgz", "build:types": "tsc --build --verbose tsconfig.build.json", - "build:types-cjs": "tsc --build --verbose tsconfig.build-cjs.json", + "build:types-cjs": "tsc --build --verbose tsconfig.types-cjs.json", "build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"", "prepublishOnly": "NODE_ENV=production yarn build", "test": "concurrently \"npm:test:publint\" \"npm:test:vitest\" npm:test:attw", @@ -100,6 +100,7 @@ "msw": "1.3.3", "publint": "0.2.8", "tsx": "4.15.6", + "type-fest": "3.13.0", "typescript": "5.4.5", "vitest": "1.6.0" }, diff --git a/packages/auth/tsconfig.build-cjs.json b/packages/auth/tsconfig.types-cjs.json similarity index 67% rename from packages/auth/tsconfig.build-cjs.json rename to packages/auth/tsconfig.types-cjs.json index 7dfd27749fed..9ab05cd30f9e 100644 --- a/packages/auth/tsconfig.build-cjs.json +++ b/packages/auth/tsconfig.types-cjs.json @@ -1,6 +1,6 @@ { "extends": "./tsconfig.build.json", "compilerOptions": { - "outDir": "dist/cjs", - }, + "outDir": "dist/cjs" + } } diff --git a/yarn.lock b/yarn.lock index 6ad3aec90288..06fe25853d5a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7825,6 +7825,7 @@ __metadata: publint: "npm:0.2.8" react: "npm:19.0.0-beta-04b058868c-20240508" tsx: "npm:4.15.6" + type-fest: "npm:3.13.0" typescript: "npm:5.4.5" vitest: "npm:1.6.0" languageName: unknown