Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ESM first and adjust exports field #8

Merged
merged 4 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"preview": "vitepress preview"
},
"devDependencies": {
"@nolebase/vitepress-plugin-enhanced-mark": "^2.2.1",
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.2.1",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.2.1",
"@shikijs/transformers": "^1.10.3",
"@shikijs/vitepress-twoslash": "^1.10.3",
"@vitejs/plugin-vue-jsx": "^4.0.0",
"prettier": "^3.3.2",
"@nolebase/vitepress-plugin-enhanced-mark": "^2.4.0",
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.4.0",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.4.0",
"@shikijs/transformers": "^1.13.0",
"@shikijs/vitepress-twoslash": "^1.13.0",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"prettier": "^2.8.8",
"sharp": "^0.33.4",
"shiki": "^1.10.3",
"unocss": "^0.61.3",
"vite": "^5.3.3",
"vitepress": "^1.3.0",
"vue": "^3.4.31"
"shiki": "^1.13.0",
"unocss": "^0.62.1",
"vite": "^5.4.0",
"vitepress": "^1.3.2",
"vue": "^3.4.37"
}
}
124 changes: 65 additions & 59 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"name": "reactjs-tiptap-editor",
"type": "module",
"version": "0.0.5",
"main": "./lib/reactjs-tiptap-editor.js",
"module": "./lib/reactjs-tiptap-editor.mjs",
"main": "./lib/reactjs-tiptap-editor.cjs",
"module": "./lib/reactjs-tiptap-editor.js",
"types": "./lib/index.d.ts",
"packageManager": "[email protected]",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/reactjs-tiptap-editor.mjs",
"require": "./lib/reactjs-tiptap-editor.js"
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/reactjs-tiptap-editor.js"
},
"require": {
"types": "./lib/index.d.cts",
"default": "./lib/reactjs-tiptap-editor.cjs"
}
},
"./style.css": {
"import": "./lib/style.css",
Expand All @@ -25,7 +31,7 @@
"LICENSE"
],
"engines": {
"node": "^18.0.0"
"node": ">=18.0.0"
},
"scripts": {
"build": "tsc && vite build",
Expand Down Expand Up @@ -58,82 +64,82 @@
"@radix-ui/react-toast": "^1.2.1",
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@tiptap/core": "^2.5.9",
"@tiptap/extension-blockquote": "^2.5.9",
"@tiptap/extension-bold": "^2.5.9",
"@tiptap/extension-bubble-menu": "^2.5.9",
"@tiptap/extension-bullet-list": "^2.5.9",
"@tiptap/extension-character-count": "^2.5.9",
"@tiptap/extension-code": "^2.5.9",
"@tiptap/extension-code-block": "^2.5.9",
"@tiptap/extension-code-block-lowlight": "^2.5.9",
"@tiptap/extension-color": "^2.5.9",
"@tiptap/extension-document": "^2.5.9",
"@tiptap/extension-dropcursor": "^2.5.9",
"@tiptap/extension-focus": "^2.5.9",
"@tiptap/extension-font-family": "^2.5.9",
"@tiptap/extension-gapcursor": "^2.5.9",
"@tiptap/extension-hard-break": "^2.5.9",
"@tiptap/extension-heading": "^2.5.9",
"@tiptap/extension-highlight": "^2.5.9",
"@tiptap/extension-history": "^2.5.9",
"@tiptap/extension-horizontal-rule": "^2.5.9",
"@tiptap/extension-image": "^2.5.9",
"@tiptap/extension-italic": "^2.5.9",
"@tiptap/extension-link": "^2.5.9",
"@tiptap/extension-list-item": "^2.5.9",
"@tiptap/extension-ordered-list": "^2.5.9",
"@tiptap/extension-paragraph": "^2.5.9",
"@tiptap/extension-placeholder": "^2.5.9",
"@tiptap/extension-strike": "^2.5.9",
"@tiptap/extension-subscript": "^2.5.9",
"@tiptap/extension-superscript": "^2.5.9",
"@tiptap/extension-table": "^2.5.9",
"@tiptap/extension-table-cell": "^2.5.9",
"@tiptap/extension-table-header": "^2.5.9",
"@tiptap/extension-table-row": "^2.5.9",
"@tiptap/extension-task-item": "^2.5.9",
"@tiptap/extension-task-list": "^2.5.9",
"@tiptap/extension-text": "^2.5.9",
"@tiptap/extension-text-align": "^2.5.9",
"@tiptap/extension-text-style": "^2.5.9",
"@tiptap/extension-underline": "^2.5.9",
"@tiptap/pm": "^2.5.9",
"@tiptap/react": "^2.5.9",
"@tiptap/suggestion": "^2.5.9",
"@tiptap/core": "^2.6.3",
"@tiptap/extension-blockquote": "^2.6.3",
"@tiptap/extension-bold": "^2.6.3",
"@tiptap/extension-bubble-menu": "^2.6.3",
"@tiptap/extension-bullet-list": "^2.6.3",
"@tiptap/extension-character-count": "^2.6.3",
"@tiptap/extension-code": "^2.6.3",
"@tiptap/extension-code-block": "^2.6.3",
"@tiptap/extension-code-block-lowlight": "^2.6.3",
"@tiptap/extension-color": "^2.6.3",
"@tiptap/extension-document": "^2.6.3",
"@tiptap/extension-dropcursor": "^2.6.3",
"@tiptap/extension-focus": "^2.6.3",
"@tiptap/extension-font-family": "^2.6.3",
"@tiptap/extension-gapcursor": "^2.6.3",
"@tiptap/extension-hard-break": "^2.6.3",
"@tiptap/extension-heading": "^2.6.3",
"@tiptap/extension-highlight": "^2.6.3",
"@tiptap/extension-history": "^2.6.3",
"@tiptap/extension-horizontal-rule": "^2.6.3",
"@tiptap/extension-image": "^2.6.3",
"@tiptap/extension-italic": "^2.6.3",
"@tiptap/extension-link": "^2.6.3",
"@tiptap/extension-list-item": "^2.6.3",
"@tiptap/extension-ordered-list": "^2.6.3",
"@tiptap/extension-paragraph": "^2.6.3",
"@tiptap/extension-placeholder": "^2.6.3",
"@tiptap/extension-strike": "^2.6.3",
"@tiptap/extension-subscript": "^2.6.3",
"@tiptap/extension-superscript": "^2.6.3",
"@tiptap/extension-table": "^2.6.3",
"@tiptap/extension-table-cell": "^2.6.3",
"@tiptap/extension-table-header": "^2.6.3",
"@tiptap/extension-table-row": "^2.6.3",
"@tiptap/extension-task-item": "^2.6.3",
"@tiptap/extension-task-list": "^2.6.3",
"@tiptap/extension-text": "^2.6.3",
"@tiptap/extension-text-align": "^2.6.3",
"@tiptap/extension-text-style": "^2.6.3",
"@tiptap/extension-underline": "^2.6.3",
"@tiptap/pm": "^2.6.3",
"@tiptap/react": "^2.6.3",
"@tiptap/suggestion": "^2.6.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"echo-drag-handle-plugin": "^0.0.2",
"lodash-unified": "^1.0.3",
"lucide-react": "^0.417.0",
"lucide-react": "^0.427.0",
"react-colorful": "^5.6.1",
"tippy.js": "^6.3.7",
"valtio": "^1.13.2"
},
"devDependencies": {
"@hunghg255/eslint-config-react": "^0.0.18",
"@total-typescript/ts-reset": "^0.4.2",
"@types/node": "^20.14.14",
"@total-typescript/ts-reset": "^0.5.1",
"@types/node": "^22.3.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.20",
"bumpp": "^9.4.2",
"bumpp": "^9.5.1",
"eslint": "^8.57.0",
"eslint-config-react-app": "^7.0.1",
"git-scm-hooks": "^0.0.6",
"git-scm-hooks": "^0.0.11",
"prettier": "^2.8.8",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sass": "^1.77.8",
"source-map-explorer": "^2.5.3",
"tailwind-merge": "^2.4.0",
"tailwindcss": "^3.4.9",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.10",
"tailwindcss-animate": "^1.0.7",
"typescript": "^4.9.5",
"verify-commit-msg": "^0.0.11",
"typescript": "^5.5.4",
"verify-commit-msg": "^0.0.14",
"vite": "^5.4.0",
"vite-plugin-dts": "^3.9.1"
"vite-plugin-dts": "^4.0.3"
},
"browserslist": [
">0.3%",
Expand Down
35 changes: 18 additions & 17 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "playground",
"private": true,
"type": "module",
"version": "0.0.5",
"scripts": {
"dev": "vite",
Expand All @@ -15,29 +16,29 @@
"release": "bumpp -r"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"reactjs-tiptap-editor": "workspace:*",
"lowlight": "^3.1.0"
"lowlight": "^3.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"reactjs-tiptap-editor": "workspace:*"
},
"devDependencies": {
"@hunghg255/eslint-config-react": "^0.0.18",
"@total-typescript/ts-reset": "^0.4.2",
"@types/node": "^20.6.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"bumpp": "^9.2.0",
"eslint": "^8.49.0",
"@total-typescript/ts-reset": "^0.5.1",
"@types/node": "^22.3.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"bumpp": "^9.5.1",
"eslint": "^8.57.0",
"eslint-config-react-app": "^7.0.1",
"git-scm-hooks": "^0.0.6",
"git-scm-hooks": "^0.0.11",
"prettier": "^2.8.8",
"sass": "^1.67.0",
"sass": "^1.77.8",
"source-map-explorer": "^2.5.3",
"typescript": "^4.9.5",
"verify-commit-msg": "^0.0.11",
"vite": "^4.4.9",
"vite-plugin-checker": "^0.6.2",
"typescript": "^5.5.4",
"verify-commit-msg": "^0.0.14",
"vite": "^5.4.0",
"vite-plugin-checker": "^0.7.2",
"vite-plugin-environment": "^1.1.3",
"vite-plugin-lightningcss": "^0.0.5"
},
Expand Down
8 changes: 6 additions & 2 deletions playground/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module.exports = {
plugins: [require('tailwindcss/nesting'), require('tailwindcss'), require('autoprefixer')],
export default {
plugins: {
"tailwindcss/nesting": {},
tailwindcss: {},
autoprefixer: {},
},
};
4 changes: 2 additions & 2 deletions playground/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const animate = require('tailwindcss-animate');
import animate from 'tailwindcss-animate';

/** @type {import('tailwindcss').Config} */
module.exports = {
export default {
darkMode: ['class'],
safelist: ['dark'],
prefix: '',
Expand Down
2 changes: 1 addition & 1 deletion playground/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
9 changes: 0 additions & 9 deletions playground/tsconfig.node.json

This file was deleted.

Loading
Loading