fix main declaration

This commit is contained in:
James Brumond 2023-05-06 14:01:11 -07:00
parent 7bb0e3a072
commit 29aab733b0
Signed by: james
GPG Key ID: E8F2FC44BAA3357A
2 changed files with 7 additions and 3 deletions

View File

@ -5,12 +5,13 @@
"registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/" "registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/"
}, },
"scripts": { "scripts": {
"tsc": "tsc" "tsc": "tsc",
"clean": "rm -rf ./build"
}, },
"bin": { "bin": {
"markdown2html": "./bin/markdown2html" "markdown2html": "./bin/markdown2html"
}, },
"exports": "./build/index.js", "main": "./src/index.ts",
"devDependencies": { "devDependencies": {
"@types/dompurify": "^2.3.3", "@types/dompurify": "^2.3.3",
"@types/jsdom": "^20.0.0", "@types/jsdom": "^20.0.0",

View File

@ -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 # 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 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 npm install --save @doc-utils/markdown2html
# Install globally for CLI usage
npm install --global @doc-utils/markdown2html
``` ```