MORE screwing around with esm
This commit is contained in:
parent
05b6f626d8
commit
66ab71fca7
@ -1,10 +1,11 @@
|
||||
{
|
||||
"name": "mark-mark-parsers-renderers",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"description": "A TypeScript MarkMark parser/renderer collection",
|
||||
"homepage": "https://garrettmills.dev/markmark",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"type": "module",
|
||||
"directories": {
|
||||
"lib": "lib"
|
||||
},
|
||||
|
@ -1,3 +1,3 @@
|
||||
export * from './types'
|
||||
export * from './parser'
|
||||
export * from './renderers'
|
||||
export * from './types.js'
|
||||
export * from './parser.js'
|
||||
export * from './renderers/index.js'
|
@ -1,5 +1,5 @@
|
||||
import * as marked from 'marked'
|
||||
import {FrontMatter, isNamedSection, Link, MarkMark, Section} from './types'
|
||||
import {FrontMatter, isNamedSection, Link, MarkMark, Section} from './types.js'
|
||||
import * as hasha from 'hasha'
|
||||
|
||||
export class Parser {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as marked from 'marked'
|
||||
import {isNamedSection, MarkMark} from '../types'
|
||||
import {isNamedSection, MarkMark} from '../types.js'
|
||||
|
||||
export class HtmlRenderer {
|
||||
public render(mm: MarkMark): string {
|
||||
|
@ -1,2 +1,2 @@
|
||||
export * from './html'
|
||||
export * from './markmark'
|
||||
export * from './html.js'
|
||||
export * from './markmark.js'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {isNamedSection, MarkMark} from '../types'
|
||||
import {isNamedSection, MarkMark} from '../types.js'
|
||||
|
||||
export class MarkMarkRenderer {
|
||||
public render(mm: MarkMark, frontmatter: boolean = true): string {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2016",
|
||||
"module": "commonjs",
|
||||
"module": "nodenext",
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
Loading…
Reference in New Issue
Block a user