MORE screwing around with esm

This commit is contained in:
Garrett Mills 2025-06-13 17:27:35 -04:00
parent 05b6f626d8
commit 66ab71fca7
7 changed files with 11 additions and 10 deletions

View File

@ -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"
},

View File

@ -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'

View File

@ -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 {

View File

@ -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 {

View File

@ -1,2 +1,2 @@
export * from './html'
export * from './markmark'
export * from './html.js'
export * from './markmark.js'

View File

@ -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 {

View File

@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"module": "nodenext",
"declaration": true,
"outDir": "./lib",
"strict": true,