diff --git a/npmextra.json b/npmextra.json index aa842b7..193d59b 100644 --- a/npmextra.json +++ b/npmextra.json @@ -1,8 +1,6 @@ { "npmci": { - "npmGlobalTools": [ - "@gitzone/npmts", - "ts-node" - ] + "npmGlobalTools": [], + "npmAccessLevel": "public" } } diff --git a/package-lock.json b/package-lock.json index ce7092d..f78c59e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "smartmarkdown", + "name": "@pushrocks/smartmarkdown", "version": "1.0.2", "lockfileVersion": 1, "requires": true, @@ -210,6 +210,11 @@ "@types/node": "*" } }, + "@types/marked": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.4.1.tgz", + "integrity": "sha512-ZqEGxppVG1x9QK/hkHxzmf6m4xcnk9CaHjNCqwvUeN3pMdCcQkPxmvrbLZ5GbP7K25TgiT1nKIGnz0U3M+G05Q==" + }, "@types/node": { "version": "10.10.3", "resolved": "https://registry.npmjs.org/@types/node/-/node-10.10.3.tgz", @@ -566,6 +571,11 @@ "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", "dev": true }, + "marked": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-0.5.0.tgz", + "integrity": "sha512-UhjmkCWKu1SS/BIePL2a59BMJ7V42EYtTfksodPRXzPEGEph3Inp5dylseqt+KbU9Jglsx8xcMKmlumfJMBXAA==" + }, "mime-db": { "version": "1.36.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", diff --git a/package.json b/package.json index 2d6865b..e512afc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@pushrocks/smartmarkdown", "version": "1.0.2", + "private": true, "description": "do more with markdown files", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -18,6 +19,8 @@ "@pushrocks/tapbundle": "^3.0.7", "@types/node": "^10.10.3" }, - "dependencies": {}, - "private": true -} + "dependencies": { + "@types/marked": "^0.4.1", + "marked": "^0.5.0" + } +} \ No newline at end of file diff --git a/test/test.ts b/test/test.ts index 2007592..2e95db3 100644 --- a/test/test.ts +++ b/test/test.ts @@ -2,7 +2,8 @@ import { expect, tap } from '@pushrocks/tapbundle'; import * as smartmarkdown from '../ts/index'; tap.test('first test', async () => { - console.log(smartmarkdown.standardExport); + const mdString = smartmarkdown.markdownToHtml('# Hi!'); + expect(mdString).to.equal('