Skip to content

Commit b682fe4

Browse files
authored
Merge pull request #4742 from udecode/tsdown
2 parents e748ff2 + ae2fbed commit b682fe4

File tree

75 files changed

+904
-1678
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+904
-1678
lines changed

.changeset/core-patch.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/esm-only-migration.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
"@platejs/ai": major
3+
"@platejs/autoformat": major
4+
"@platejs/basic-nodes": major
5+
"@platejs/basic-styles": major
6+
"@platejs/callout": major
7+
"@platejs/caption": major
8+
"@platejs/code-block": major
9+
"@platejs/combobox": major
10+
"@platejs/comment": major
11+
"@platejs/core": major
12+
"@platejs/csv": major
13+
"@platejs/cursor": major
14+
"@platejs/date": major
15+
"@platejs/diff": major
16+
"@platejs/dnd": major
17+
"@platejs/docx": major
18+
"@platejs/emoji": major
19+
"@platejs/excalidraw": major
20+
"@platejs/find-replace": major
21+
"@platejs/floating": major
22+
"@platejs/indent": major
23+
"@platejs/juice": major
24+
"@platejs/layout": major
25+
"@platejs/link": major
26+
"@platejs/list": major
27+
"@platejs/list-classic": major
28+
"@platejs/markdown": major
29+
"@platejs/math": major
30+
"@platejs/media": major
31+
"@platejs/mention": major
32+
"@platejs/plate": major
33+
"@platejs/playwright": major
34+
"@platejs/resizable": major
35+
"@platejs/selection": major
36+
"@platejs/slash-command": major
37+
"@platejs/slate": major
38+
"@platejs/suggestion": major
39+
"@platejs/tabbable": major
40+
"@platejs/table": major
41+
"@platejs/tag": major
42+
"@platejs/test-utils": major
43+
"@platejs/toc": major
44+
"@platejs/toggle": major
45+
"@platejs/utils": major
46+
"@platejs/yjs": major
47+
"@udecode/cmdk": major
48+
"@udecode/cn": major
49+
"@udecode/react-hotkeys": major
50+
"@udecode/react-utils": major
51+
"@udecode/utils": major
52+
---
53+
54+
ESM-only

.changeset/slate-patch.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/legacy/ci-apps.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ jobs:
6262
- name: Build Apps
6363
run: yarn build:apps
6464

65-
notify:
66-
name: Discord Notification
67-
runs-on: ubuntu-latest
68-
needs:
69-
- build
70-
if: ${{ github.event_name == 'push' && failure() }}
71-
72-
steps:
73-
- name: Notify
74-
uses: nobrayner/discord-webhook@v1
75-
with:
76-
github-token: ${{ secrets.X_GITHUB_READ_ACTIONS_TOKEN }}
77-
discord-webhook: ${{ secrets.DISCORD_CI_WEBHOOK }}
78-
description: ${{ github.event.number && format('https://github.com/udecode/plate/pull/{0}', github.event.number) || 'Push' }}
65+
# notify:
66+
# name: Discord Notification
67+
# runs-on: ubuntu-latest
68+
# needs:
69+
# - build
70+
# if: ${{ github.event_name == 'push' && failure() }}
71+
72+
# steps:
73+
# - name: Notify
74+
# uses: nobrayner/discord-webhook@v1
75+
# with:
76+
# github-token: ${{ secrets.X_GITHUB_READ_ACTIONS_TOKEN }}
77+
# discord-webhook: ${{ secrets.DISCORD_CI_WEBHOOK }}
78+
# description: ${{ github.event.number && format('https://github.com/udecode/plate/pull/{0}', github.event.number) || 'Push' }}
File renamed without changes.

.github/workflows/lint-typecheck.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ jobs:
9595
# - name: 🎭 Run Playwright tests
9696
# run: yarn e2e
9797

98-
notify-failure:
99-
name: Discord Notification
100-
runs-on: ubuntu-latest
101-
needs: [ci]
102-
if: ${{ github.event_name == 'push' && failure() }}
103-
104-
steps:
105-
- name: Send Discord Notification
106-
uses: nobrayner/discord-webhook@v1
107-
with:
108-
github-token: ${{ secrets.X_GITHUB_READ_ACTIONS_TOKEN }}
109-
discord-webhook: ${{ secrets.DISCORD_CI_WEBHOOK }}
110-
description: ${{ github.event.number && format('https://github.com/udecode/plate/pull/{0}', github.event.number) || 'Push' }}
98+
# notify-failure:
99+
# name: Discord Notification
100+
# runs-on: ubuntu-latest
101+
# needs: [ci]
102+
# if: ${{ github.event_name == 'push' && failure() }}
103+
104+
# steps:
105+
# - name: Send Discord Notification
106+
# uses: nobrayner/discord-webhook@v1
107+
# with:
108+
# github-token: ${{ secrets.X_GITHUB_READ_ACTIONS_TOKEN }}
109+
# discord-webhook: ${{ secrets.DISCORD_CI_WEBHOOK }}
110+
# description: ${{ github.event.number && format('https://github.com/udecode/plate/pull/{0}', github.event.number) || 'Push' }}

biome.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"!!**/.contentlayer",
2525
"!!**/*otf.json",
2626
"!!**/*.html",
27+
"!!tooling/config/global.d.ts",
2728
"!!templates",
2829
"!**/__registry__",
2930
"!**/next-env.d.ts"

jest.config.cjs

Lines changed: 0 additions & 90 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "plate",
33
"private": true,
44
"license": "MIT",
5+
"type": "module",
56
"workspaces": [
67
"apps/*",
78
"packages/*",
@@ -52,13 +53,13 @@
5253
"lint:fix": "biome check . --fix",
5354
"nuke:node_modules": "rimraf '**/node_modules'",
5455
"p:brl": "sh tooling/scripts/brl.sh",
55-
"p:build": "cd $INIT_CWD && yarn p:tsup",
56-
"p:build:watch": "cd $INIT_CWD && yarn p:tsup --watch",
56+
"p:build": "cd $INIT_CWD && yarn p:tsdown",
57+
"p:build:watch": "cd $INIT_CWD && yarn p:tsdown --watch",
5758
"p:clean": "cd $INIT_CWD && rimraf dist",
5859
"p:lint": "biome check $INIT_CWD",
5960
"p:lint:fix": "biome check $INIT_CWD --fix",
6061
"p:test": "cd $INIT_CWD && bun test",
61-
"p:tsup": "cd $INIT_CWD && tsup --config=${PROJECT_CWD}/tooling/config/tsup.config.ts",
62+
"p:tsdown": "cd $INIT_CWD && tsdown --config=${PROJECT_CWD}/tooling/config/tsdown.config.ts --log-level warn",
6263
"p:typecheck": "cd $INIT_CWD && tsc -p $INIT_CWD/tsconfig.json",
6364
"r": "yarn workspace www r",
6465
"rc": "turbo --filter=www rc",
@@ -123,7 +124,7 @@
123124
"slate-test-utils": "1.3.2",
124125
"tailwindcss": "4.1.8",
125126
"tinyglobby": "0.2.14",
126-
"tsup": "8.5.0",
127+
"tsdown": "0.16.6",
127128
"turbo": "2.5.4",
128129
"turbowatch": "2.29.4",
129130
"typescript": "5.8.3",

packages/ai/package.json

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,12 @@
1919
"license": "MIT",
2020
"sideEffects": false,
2121
"exports": {
22-
".": {
23-
"types": "./dist/index.d.ts",
24-
"import": "./dist/index.mjs",
25-
"module": "./dist/index.mjs",
26-
"require": "./dist/index.js"
27-
},
28-
"./react": {
29-
"types": "./dist/react/index.d.ts",
30-
"import": "./dist/react/index.mjs",
31-
"module": "./dist/react/index.mjs",
32-
"require": "./dist/react/index.js"
33-
}
22+
".": "./dist/index.js",
23+
"./react": "./dist/react/index.js",
24+
"./package.json": "./package.json"
3425
},
35-
"main": "dist/index.js",
36-
"module": "dist/index.mjs",
37-
"types": "dist/index.d.ts",
26+
"main": "./dist/index.js",
27+
"types": "./dist/index.d.ts",
3828
"files": [
3929
"dist/**/*"
4030
],
@@ -68,5 +58,7 @@
6858
},
6959
"publishConfig": {
7060
"access": "public"
71-
}
61+
},
62+
"type": "module",
63+
"module": "./dist/index.js"
7264
}

0 commit comments

Comments
 (0)