Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: generating d.ts files (#463)
白熱d5bfa0e9ac06
diff --git a/examples/univer-doc-ts/tsconfig.json b/examples/univer-doc-ts/tsconfig.jsonindex ad04472d32..d16c0c785a 100644--- a/examples/univer-doc-ts/tsconfig.json+++ b/examples/univer-doc-ts/tsconfig.json@@ -5,7 +5,7 @@"outDir": "lib","downlevelIteration": true,"baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"emitDecoratorMetadata": true,"strictPropertyInitialization": false,diff --git a/examples/univer-sheet-ts/tsconfig.json b/examples/univer-sheet-ts/tsconfig.jsonindex b5a8ba938b..0b9235385e 100644--- a/examples/univer-sheet-ts/tsconfig.json+++ b/examples/univer-sheet-ts/tsconfig.json@@ -6,7 +6,7 @@"module": "commonjs","downlevelIteration": true,"baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"emitDecoratorMetadata": true,"strictPropertyInitialization": false},diff --git a/examples/univer-slide-ts/tsconfig.json b/examples/univer-slide-ts/tsconfig.jsonindex ad04472d32..d16c0c785a 100644--- a/examples/univer-slide-ts/tsconfig.json+++ b/examples/univer-slide-ts/tsconfig.json@@ -5,7 +5,7 @@"outDir": "lib","downlevelIteration": true,"baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"emitDecoratorMetadata": true,"strictPropertyInitialization": false,diff --git a/packages/base-docs/package.json b/packages/base-docs/package.jsonindex 12005ded7a..f8204b71bc 100644--- a/packages/base-docs/package.json+++ b/packages/base-docs/package.json@@ -5,7 +5,8 @@"keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -31,7 +32,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@univerjs/base-render": "workspace:*",diff --git a/packages/base-docs/tsconfig.esbuild.json b/packages/base-docs/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/base-docs/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/base-docs/tsconfig.json b/packages/base-docs/tsconfig.jsonindex 31e6ba7f4f..62dd043e50 100644--- a/packages/base-docs/tsconfig.json+++ b/packages/base-docs/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/base-formula-engine/package.json b/packages/base-formula-engine/package.jsonindex dcfd6685de..ad4588eb85 100644--- a/packages/base-formula-engine/package.json+++ b/packages/base-formula-engine/package.json@@ -5,7 +5,8 @@"keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -29,7 +30,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@univerjs/core": "workspace:*",diff --git a/packages/base-formula-engine/tsconfig.esbuild.json b/packages/base-formula-engine/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/base-formula-engine/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/base-formula-engine/tsconfig.json b/packages/base-formula-engine/tsconfig.jsonindex 55a9dcacca..56379c3a55 100644--- a/packages/base-formula-engine/tsconfig.json+++ b/packages/base-formula-engine/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/base-numfmt-engine/package.json b/packages/base-numfmt-engine/package.jsonindex 6d5588d52d..457ea1175a 100644--- a/packages/base-numfmt-engine/package.json+++ b/packages/base-numfmt-engine/package.json@@ -5,7 +5,8 @@"keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -29,7 +30,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@univerjs/core": "workspace:*"diff --git a/packages/base-numfmt-engine/tsconfig.esbuild.json b/packages/base-numfmt-engine/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/base-numfmt-engine/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/base-render/package.json b/packages/base-render/package.jsonindex f5abc89ee4..2c96e77a06 100644--- a/packages/base-render/package.json+++ b/packages/base-render/package.json@@ -2,14 +2,11 @@"name": "@univerjs/base-render","version": "0.0.1","description": "UniverSheet normal base-render",- "keywords": [- "univer",- "render",- "canvas"- ],+ "keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -33,7 +30,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@univerjs/core": "workspace:*",diff --git a/packages/base-render/tsconfig.esbuild.json b/packages/base-render/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/base-render/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/base-render/tsconfig.json b/packages/base-render/tsconfig.jsonindex a5bf44cc25..c3330f3fe1 100644--- a/packages/base-render/tsconfig.json+++ b/packages/base-render/tsconfig.json@@ -7,7 +7,7 @@// "paths": {// "@*": ["src/*"]// },- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/base-sheets/package.json b/packages/base-sheets/package.jsonindex c8263f4fee..a9708a0576 100644--- a/packages/base-sheets/package.json+++ b/packages/base-sheets/package.json@@ -2,14 +2,11 @@"name": "@univerjs/base-sheets","version": "0.0.1","description": "UniverSheet normal base-sheets",- "keywords": [- "univer",- "sheets",- "spreadsheet"- ],+ "keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -35,7 +32,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@ctrl/tinycolor": "^4.0.2",diff --git a/packages/base-sheets/tsconfig.esbuild.json b/packages/base-sheets/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/base-sheets/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/base-sheets/tsconfig.json b/packages/base-sheets/tsconfig.jsonindex 7b6893afd0..0c7094d6a6 100644--- a/packages/base-sheets/tsconfig.json+++ b/packages/base-sheets/tsconfig.json@@ -9,7 +9,7 @@"src/*"]},- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": ["src/**/*"]diff --git a/packages/base-slides/tsconfig.json b/packages/base-slides/tsconfig.jsonindex 31e6ba7f4f..62dd043e50 100644--- a/packages/base-slides/tsconfig.json+++ b/packages/base-slides/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/base-ui/package.json b/packages/base-ui/package.jsonindex 8558f549d3..ab366e66d6 100644--- a/packages/base-ui/package.json+++ b/packages/base-ui/package.json@@ -2,13 +2,11 @@"name": "@univerjs/base-ui","version": "0.0.1","description": "UniverSheet normal plugin UI manager",- "keywords": [- "univer",- "ui"- ],+ "keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -34,9 +32,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs",- "sb": "storybook dev -p 6006 --no-open",- "build:doc": "storybook build"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@univerjs/base-render": "workspace:*",@@ -53,14 +49,6 @@"rxjs": "^7.8.1"},"devDependencies": {- "@storybook/addon-docs": "^7.5.3",- "@storybook/addon-essentials": "^7.5.3",- "@storybook/addon-interactions": "^7.5.3",- "@storybook/addon-links": "^7.5.3",- "@storybook/blocks": "^7.5.3",- "@storybook/react": "^7.5.3",- "@storybook/react-vite": "^7.5.3",- "@storybook/testing-library": "^0.2.2","@testing-library/react": "^14.1.0","@types/node": "^20.9.0","@types/react": "^18.2.37",@@ -71,7 +59,6 @@"esbuild": "^0.19.5","happy-dom": "^12.10.3","less": "^4.2.0",- "storybook": "^7.5.3","ts-node": "^10.9.1","vitest": "^0.34.6"}diff --git a/packages/base-ui/tsconfig.esbuild.json b/packages/base-ui/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/base-ui/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/base-ui/tsconfig.json b/packages/base-ui/tsconfig.jsonindex 945e93f06b..f35fde7a9a 100644--- a/packages/base-ui/tsconfig.json+++ b/packages/base-ui/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false,},"include": [diff --git a/packages/common-plugin-data/tsconfig.json b/packages/common-plugin-data/tsconfig.jsonindex 69c12276c4..9336101193 100644--- a/packages/common-plugin-data/tsconfig.json+++ b/packages/common-plugin-data/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"jsx": "preserve","strictPropertyInitialization": false},diff --git a/packages/core/package.json b/packages/core/package.jsonindex 110a6bbf43..00157ecb70 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -4,7 +4,8 @@"description": "Univer core","keywords": [],"author": "DreamNum <[email protected]>",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -28,7 +29,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"license": "MIT","homepage": "https://github.com/dream-num/univer",diff --git a/packages/core/tsconfig.esbuild.json b/packages/core/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/core/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.jsonindex 1a066e7234..9fc1b6f487 100644--- a/packages/core/tsconfig.json+++ b/packages/core/tsconfig.json@@ -5,7 +5,7 @@"outDir": "lib","downlevelIteration": true,"baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"jsx": "preserve","emitDecoratorMetadata": true,"strictPropertyInitialization": falsediff --git a/packages/design/package.json b/packages/design/package.jsonindex 04c98b2eed..3b11748d74 100644--- a/packages/design/package.json+++ b/packages/design/package.json@@ -2,14 +2,11 @@"name": "@univerjs/design","version": "0.0.1","description": "UI component library for building exceptional Univer.",- "keywords": [- "UI",- "Component Library",- "React"- ],+ "keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -35,7 +32,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@rc-component/color-picker": "^1.4.1",diff --git a/packages/design/tsconfig.esbuild.json b/packages/design/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/design/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/rpc/package.json b/packages/rpc/package.jsonindex ee05982969..1489f08556 100644--- a/packages/rpc/package.json+++ b/packages/rpc/package.json@@ -4,7 +4,8 @@"keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -27,7 +28,7 @@"private": false,"type": "module","scripts": {- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@univerjs/core": "workspace:*",diff --git a/packages/rpc/tsconfig.esbuild.json b/packages/rpc/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/rpc/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/rpc/tsconfig.json b/packages/rpc/tsconfig.jsonnew file mode 100644index 0000000000..7771dad556--- /dev/null+++ b/packages/rpc/tsconfig.json@@ -0,0 +1,13 @@+{+ "extends": "../../tsconfig.json",+ "compilerOptions": {+ "rootDir": "./",+ "outDir": "lib",+ "baseUrl": "./",+ "esModuleInterop": true,+ "strictPropertyInitialization": false+ },+ "include": [+ "src/**/*"+ ]+}diff --git a/packages/sheets-plugin-find/tsconfig.json b/packages/sheets-plugin-find/tsconfig.jsonindex 55a9dcacca..56379c3a55 100644--- a/packages/sheets-plugin-find/tsconfig.json+++ b/packages/sheets-plugin-find/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/sheets-plugin-formula-ui/package.json b/packages/sheets-plugin-formula-ui/package.jsonindex 85b53848bb..b2dbd4ee1c 100644--- a/packages/sheets-plugin-formula-ui/package.json+++ b/packages/sheets-plugin-formula-ui/package.json@@ -3,7 +3,8 @@"version": "0.0.1","author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -26,9 +27,10 @@"private": false,"type": "module","scripts": {- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {+ "@ctrl/tinycolor": "^4.0.2","@univerjs/base-docs": "workspace:*","@univerjs/base-formula-engine": "workspace:*","@univerjs/base-render": "workspace:*",@@ -41,8 +43,7 @@"@wendellhu/redi": "^0.12.11","react": "^18.2.0","react-dom": "^18.2.0",- "rxjs": "^7.8.1",- "@ctrl/tinycolor": "^4.0.2"+ "rxjs": "^7.8.1"},"devDependencies": {"@types/node": "^20.9.0",diff --git a/packages/sheets-plugin-formula-ui/tsconfig.esbuild.json b/packages/sheets-plugin-formula-ui/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/sheets-plugin-formula-ui/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/sheets-plugin-formula-ui/tsconfig.json b/packages/sheets-plugin-formula-ui/tsconfig.jsonindex ddaaf6396d..7771dad556 100644--- a/packages/sheets-plugin-formula-ui/tsconfig.json+++ b/packages/sheets-plugin-formula-ui/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/sheets-plugin-formula/package.json b/packages/sheets-plugin-formula/package.jsonindex 287959929f..3211e499fb 100644--- a/packages/sheets-plugin-formula/package.json+++ b/packages/sheets-plugin-formula/package.json@@ -3,7 +3,8 @@"version": "0.0.1","author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -24,7 +25,7 @@"private": false,"type": "module","scripts": {- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@univerjs/base-formula-engine": "workspace:*",diff --git a/packages/sheets-plugin-formula/tsconfig.esbuild.json b/packages/sheets-plugin-formula/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/sheets-plugin-formula/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/sheets-plugin-formula/tsconfig.json b/packages/sheets-plugin-formula/tsconfig.jsonindex ddaaf6396d..7771dad556 100644--- a/packages/sheets-plugin-formula/tsconfig.json+++ b/packages/sheets-plugin-formula/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/sheets-plugin-import-xlsx/tsconfig.json b/packages/sheets-plugin-import-xlsx/tsconfig.jsonindex 55a9dcacca..56379c3a55 100644--- a/packages/sheets-plugin-import-xlsx/tsconfig.json+++ b/packages/sheets-plugin-import-xlsx/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/sheets-plugin-numfmt/package.json b/packages/sheets-plugin-numfmt/package.jsonindex 4f6c4ad571..afe5463a88 100644--- a/packages/sheets-plugin-numfmt/package.json+++ b/packages/sheets-plugin-numfmt/package.json@@ -5,7 +5,8 @@"keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -29,7 +30,7 @@"type": "module","scripts": {"test": "vitest run",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@univerjs/base-numfmt-engine": "workspace:*",diff --git a/packages/sheets-plugin-numfmt/tsconfig.esbuild.json b/packages/sheets-plugin-numfmt/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/sheets-plugin-numfmt/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/ui-plugin-docs/package.json b/packages/ui-plugin-docs/package.jsonindex 562e31b11c..0255ca267d 100644--- a/packages/ui-plugin-docs/package.json+++ b/packages/ui-plugin-docs/package.json@@ -5,7 +5,8 @@"keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -29,7 +30,7 @@"type": "module","scripts": {"test": "vitest run",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@ctrl/tinycolor": "^4.0.2",@@ -47,8 +48,8 @@"@types/react": "^18.2.37","@types/react-dom": "^18.2.15","@vitest/coverage-istanbul": "^0.34.6",- "happy-dom": "^12.10.3","esbuild": "^0.19.5",+ "happy-dom": "^12.10.3","less": "^4.2.0","ts-node": "^10.9.1","vitest": "^0.34.6"diff --git a/packages/ui-plugin-docs/tsconfig.esbuild.json b/packages/ui-plugin-docs/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/ui-plugin-docs/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/ui-plugin-docs/tsconfig.json b/packages/ui-plugin-docs/tsconfig.jsonindex 55a9dcacca..56379c3a55 100644--- a/packages/ui-plugin-docs/tsconfig.json+++ b/packages/ui-plugin-docs/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/ui-plugin-sheets/package.json b/packages/ui-plugin-sheets/package.jsonindex 564225a86b..9c91513bcb 100644--- a/packages/ui-plugin-sheets/package.json+++ b/packages/ui-plugin-sheets/package.json@@ -5,7 +5,8 @@"keywords": [],"author": "DreamNum <[email protected]>","license": "MIT",- "main": "./src/index.ts",+ "main": "./lib/index.ts",+ "types": "./lib/index.d.ts","publishConfig": {"access": "public","exports": {@@ -31,7 +32,7 @@"test": "vitest run","test:watch": "vitest","coverage": "vitest run --coverage",- "esbuild": "node ./esbuild.config.mjs"+ "esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"},"dependencies": {"@ctrl/tinycolor": "^4.0.2",@@ -44,10 +45,10 @@"@univerjs/design": "workspace:*","@univerjs/icons": "^0.1.12","@wendellhu/redi": "^0.12.11",+ "clsx": "^2.0.0","react": "^18.2.0","react-dom": "^18.2.0",- "rxjs": "^7.8.1",- "clsx": "^2.0.0"+ "rxjs": "^7.8.1"},"devDependencies": {"@types/node": "^20.9.0",diff --git a/packages/ui-plugin-sheets/tsconfig.esbuild.json b/packages/ui-plugin-sheets/tsconfig.esbuild.jsonnew file mode 100644index 0000000000..fabcee4651--- /dev/null+++ b/packages/ui-plugin-sheets/tsconfig.esbuild.json@@ -0,0 +1,13 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "rootDir": "./src",+ "outDir": "lib",+ "declaration": true,+ "declarationDir": "./lib",+ "declarationMap": true,+ "emitDeclarationOnly": true,+ "isolatedModules": false+ },+ "exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]+}diff --git a/packages/ui-plugin-sheets/tsconfig.json b/packages/ui-plugin-sheets/tsconfig.jsonindex 55a9dcacca..56379c3a55 100644--- a/packages/ui-plugin-sheets/tsconfig.json+++ b/packages/ui-plugin-sheets/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/packages/ui-plugin-slides/tsconfig.json b/packages/ui-plugin-slides/tsconfig.jsonindex 55a9dcacca..56379c3a55 100644--- a/packages/ui-plugin-slides/tsconfig.json+++ b/packages/ui-plugin-slides/tsconfig.json@@ -4,7 +4,7 @@"rootDir": "./","outDir": "lib","baseUrl": "./",- "esModuleInterop": true, // auto allowSyntheticDefaultImports true+ "esModuleInterop": true,"strictPropertyInitialization": false},"include": [diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex fe1a8e24aa..929bbd7161 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -591,30 +591,6 @@ importers:specifier: ^7.8.1version: 7.8.1devDependencies:- '@storybook/addon-docs':- specifier: ^7.5.3- version: 7.5.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@storybook/addon-essentials':- specifier: ^7.5.3- version: 7.5.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@storybook/addon-interactions':- specifier: ^7.5.3- version: 7.5.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@storybook/addon-links':- specifier: ^7.5.3- version: 7.5.3([email protected])([email protected])- '@storybook/blocks':- specifier: ^7.5.3- version: 7.5.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@storybook/react':- specifier: ^7.5.3- '@storybook/react-vite':- specifier: ^7.5.3- '@storybook/testing-library':- specifier: ^0.2.2- version: 0.2.2'@testing-library/react':specifier: ^14.1.0version: 14.1.0([email protected])([email protected])@@ -645,9 +621,6 @@ importers:less:specifier: ^4.2.0version: 4.2.0- storybook:- specifier: ^7.5.3- version: 7.5.3ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])diff --git a/tsconfig.json b/tsconfig.jsonindex 37efb2225b..b27b11ee12 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -3,9 +3,6 @@"lib": ["ESNext", "DOM", "WebWorker", "dom.iterable"],"target": "ESNext","module": "ESNext",- "declaration": true,- "declarationDir": "./lib",- "declarationMap": true,"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "react",