Skip to content

Commit

Permalink
fix: add modern target config
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdoro committed Mar 30, 2024
1 parent 26ba301 commit e3e35f1
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"module": "dist/index.js",
"umd": "dist/index.umd.js",
"types": "dist/index.d.ts",
"type": "module",
"files": [
"dist"
],
Expand Down
4 changes: 2 additions & 2 deletions prettier.config.js → prettier.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
bracketSpacing: true,
semi: true,
singleQuote: true,
trailingComma: "all",
trailingComma: 'all',
printWidth: 80,
tabWidth: 2,
}
};
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default {
tsconfig: './tsconfig.json',
tsconfigOverride: {
compilerOptions: {
baseUrl: '.',
declaration: true,
paths: {
'./*': ['src/*'],
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// @ts-ignore
import { __serializeForClipboard, EditorView } from '@tiptap/pm/view';
import { Extension } from '@tiptap/core';
import { NodeSelection, Plugin, TextSelection } from '@tiptap/pm/state';
import { Fragment, Slice, Node } from '@tiptap/pm/model';

// @ts-ignore
import { __serializeForClipboard, EditorView } from '@tiptap/pm/view';

export interface GlobalDragHandleOptions {
/**
* The width of the drag handle
Expand Down
29 changes: 19 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"outDir": "./dist",
"strict": true,
"moduleResolution": "node",
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"target": "es2022",
"allowJs": true,
"moduleDetection": "force",
"isolatedModules": true,
/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
/* If transpiling with TypeScript: */
"moduleResolution": "node",
"module": "ESNext",
"outDir": "dist",
"sourceMap": true,
/* AND if you're building for a library: */
"declaration": true,
"baseUrl": "."
},
"include": ["src"],
"exclude": ["node_modules"]

"noEmit": true,
/* If your code runs in the DOM: */
"lib": ["es2022", "dom", "dom.iterable"]
}
}

0 comments on commit e3e35f1

Please sign in to comment.