mirror of
https://github.com/makeplane/plane.git
synced 2025-12-16 20:07:56 +01:00
fix: esm module imports for live and editor
This commit is contained in:
@@ -17,8 +17,7 @@
|
|||||||
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"author": "Plane Software Inc.",
|
||||||
"author": "",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hocuspocus/extension-database": "^2.15.0",
|
"@hocuspocus/extension-database": "^2.15.0",
|
||||||
"@hocuspocus/extension-logger": "^2.15.0",
|
"@hocuspocus/extension-logger": "^2.15.0",
|
||||||
|
|||||||
@@ -3,5 +3,7 @@ import { defineConfig } from "tsdown";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: ["src/server.ts"],
|
entry: ["src/server.ts"],
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
format: ["esm", "cjs"],
|
format: ["esm"],
|
||||||
|
clean: true,
|
||||||
|
sourcemap: true,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4,21 +4,15 @@
|
|||||||
"description": "Core Editor that powers Plane",
|
"description": "Core Editor that powers Plane",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"files": [
|
"type": "module",
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"main": "./dist/index.mjs",
|
|
||||||
"module": "./dist/index.mjs",
|
|
||||||
"types": "./dist/index.d.mts",
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.mts",
|
"types": "./dist/index.d.ts",
|
||||||
"import": "./dist/index.mjs"
|
"import": "./dist/index.js"
|
||||||
},
|
},
|
||||||
"./lib": {
|
"./lib": {
|
||||||
"require": "./dist/lib.js",
|
"types": "./dist/lib.d.ts",
|
||||||
"types": "./dist/lib.d.mts",
|
"import": "./dist/lib.js"
|
||||||
"import": "./dist/lib.mjs"
|
|
||||||
},
|
},
|
||||||
"./styles": "./dist/styles/index.css"
|
"./styles": "./dist/styles/index.css"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import { defineConfig } from "tsdown";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts", "src/lib.ts"],
|
entry: ["src/index.ts", "src/lib.ts"],
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
format: ["esm", "cjs"],
|
format: ["esm"],
|
||||||
dts: true,
|
dts: true,
|
||||||
clean: false,
|
clean: true,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
copy: ["src/styles"],
|
copy: ["src/styles"],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user