feat: improve build tools, expose types

This commit is contained in:
Anthony Fu
2024-02-21 11:41:57 +01:00
parent 668ba82ac8
commit a540447a45
9 changed files with 2030 additions and 527 deletions

View File

@@ -1,14 +1,14 @@
{
"name": "rough-notation",
"version": "0.5.1",
"name": "@slidev/rough-notation",
"version": "0.0.0",
"type": "module",
"description": "Create and animate hand-drawn annotations on a web page",
"main": "lib/rough-notation.cjs.js",
"module": "lib/rough-notation.esm.js",
"types": "lib/rough-notation.d.ts",
"main": "dist/index.mjs",
"module": "dist/index.cjs",
"types": "dist/index.d.mts",
"scripts": {
"build": "rm -rf lib && tsc && rollup -c",
"lint": "tslint -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1"
"build": "unbuild",
"lint": "tslint -p tsconfig.json"
},
"repository": {
"type": "git",
@@ -19,18 +19,21 @@
"rough",
"sketchy"
],
"files": [
"dist"
],
"author": "Preet Shihn",
"license": "MIT",
"bugs": {
"url": "https://github.com/pshihn/rough-notation/issues"
},
"homepage": "https://github.com/pshihn/rough-notation#readme",
"dependencies": {
"roughjs": "^4.6.6"
},
"devDependencies": {
"rollup": "^2.32.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^6.1.0",
"roughjs": "^4.3.1",
"tslint": "^6.1.3",
"typescript": "^4.0.5"
"typescript": "^5.3.3",
"unbuild": "^2.0.0"
}
}