Skip to content
Draft
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
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
"license": "MIT",
"scripts": {
"start": "react-scripts start",
"build": "rollup -c -o build/react-easy-edit.min.js",
"build": "yarn run tsc && rollup -c -o build/react-easy-edit.min.js",
"test": "react-scripts test",
"coverage": "react-scripts test --coverage --watchAll=false",
"prepublish": "yarn build"
"prepublish": "yarn build",
"tsc": "tsc"
},
"main": "build/react-easy-edit.min.js",
"repository": {
Expand Down Expand Up @@ -68,6 +69,10 @@
"react-scripts": "^5.0.1",
"rollup": "2.53.3",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2"
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.9.5"
},
"dependencies": {
"@types/estree": "^1.0.5"
}
}
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
// Change this to match your project
"include": ["src/lib/*"],
"compilerOptions": {
"allowJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "build/types",
"declarationMap": true
}
}