diff --git a/package-lock.json b/package-lock.json index fa66a40..0bea7c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nulib/use-markdown", - "version": "0.1.0", + "version": "0.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nulib/use-markdown", - "version": "0.1.0", + "version": "0.2.0", "dependencies": { "rehype-raw": "^7.0.0", "rehype-stringify": "^10.0.0", diff --git a/package.json b/package.json index 28fc680..eeae646 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,15 @@ { "name": "@nulib/use-markdown", - "version": "0.1.0", + "version": "0.2.0", "type": "module", - "main": "dist/use-markdown.umd.cjs", - "module": "dist/use-markdown.mjs", - "types": "dist/use-markdown.d.ts", + "files": [ + "dist" + ], + "main": "./dist/use-markdown.js", + "types": "./dist/use-markdown.d.ts", "exports": { ".": { - "import": "./dist/use-markdown.mjs", - "require": "./dist/use-markdown.umd.cjs", + "import": "./dist/use-markdown.js", "types": "./dist/use-markdown.d.ts" } }, @@ -17,6 +18,7 @@ "clean": "rimraf dist", "dev": "vite", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "prepublishOnly": "npm run build", "preview": "vite preview", "test": "vitest" },