diff --git a/package.json b/package.json index 49e985f..b36dd2a 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,13 @@ "registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/" }, "scripts": { - "tsc": "tsc" + "tsc": "tsc", + "clean": "rm -rf ./build" }, "bin": { "markdown2html": "./bin/markdown2html" }, - "exports": "./build/index.js", + "main": "./src/index.ts", "devDependencies": { "@types/dompurify": "^2.3.3", "@types/jsdom": "^20.0.0", diff --git a/readme.md b/readme.md index aa02aca..d2171bb 100644 --- a/readme.md +++ b/readme.md @@ -22,8 +22,11 @@ These are the primary projects used to render various types of content: # Update project npm config to refer to correct registry for the @doc-utils scope echo '@doc-utils:registry=https://gitea.jbrumond.me/api/packages/doc-utils/npm/' >> ./.npmrc -# Install package +# Install package for programatic use npm install --save @doc-utils/markdown2html + +# Install globally for CLI usage +npm install --global @doc-utils/markdown2html ```