From 4c6fa5992b06d1c0edb3e322d2572c17465a70d5 Mon Sep 17 00:00:00 2001 From: zanminkian Date: Tue, 26 Nov 2024 14:08:53 +0000 Subject: [PATCH] refactor(fenge): optimize tsconfig exports and rename tsconfig.json to index.json --- .changeset/wild-monkeys-boil.md | 5 +++++ packages/fenge/package.json | 9 ++++++--- packages/fenge/tsconfig.json | 2 +- packages/fenge/tsconfig/{tsconfig.json => index.json} | 0 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .changeset/wild-monkeys-boil.md rename packages/fenge/tsconfig/{tsconfig.json => index.json} (100%) diff --git a/.changeset/wild-monkeys-boil.md b/.changeset/wild-monkeys-boil.md new file mode 100644 index 00000000..1d707b40 --- /dev/null +++ b/.changeset/wild-monkeys-boil.md @@ -0,0 +1,5 @@ +--- +"fenge": minor +--- + +refactor(fenge): optimize tsconfig exports and rename tsconfig.json to index.json diff --git a/packages/fenge/package.json b/packages/fenge/package.json index 193350f5..c3d3c4e9 100644 --- a/packages/fenge/package.json +++ b/packages/fenge/package.json @@ -35,9 +35,12 @@ "./types": { "types": "./types/index.d.ts" }, - "./tsconfig": "./tsconfig/tsconfig.json", - "./tsconfig/*": "./tsconfig/*.json", - "./tsconfig/*.json": "./tsconfig/*.json" + "./tsconfig": "./tsconfig/index.json", + "./tsconfig.json": "./tsconfig/index.json", + "./tsconfig/esm": "./tsconfig/esm.json", + "./tsconfig/esm.json": "./tsconfig/esm.json", + "./tsconfig/cjs": "./tsconfig/cjs.json", + "./tsconfig/cjs.json": "./tsconfig/cjs.json" }, "bin": "./src/bin/cli.js", "scripts": { diff --git a/packages/fenge/tsconfig.json b/packages/fenge/tsconfig.json index eaa4745c..6c514a2f 100644 --- a/packages/fenge/tsconfig.json +++ b/packages/fenge/tsconfig.json @@ -1,3 +1,3 @@ { - "extends": "./tsconfig/tsconfig.json" + "extends": "./tsconfig/index.json" } diff --git a/packages/fenge/tsconfig/tsconfig.json b/packages/fenge/tsconfig/index.json similarity index 100% rename from packages/fenge/tsconfig/tsconfig.json rename to packages/fenge/tsconfig/index.json