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", "name": "mark-mark-parsers-renderers",
"version": "0.1.3", "version": "0.1.4",
"description": "A TypeScript MarkMark parser/renderer collection", "description": "A TypeScript MarkMark parser/renderer collection",
"homepage": "https://garrettmills.dev/markmark", "homepage": "https://garrettmills.dev/markmark",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"type": "module",
"directories": { "directories": {
"lib": "lib" "lib": "lib"
}, },

View File

@ -1,3 +1,3 @@
export * from './types' export * from './types.js'
export * from './parser' export * from './parser.js'
export * from './renderers' export * from './renderers/index.js'

View File

@ -1,5 +1,5 @@
import * as marked from 'marked' 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' import * as hasha from 'hasha'
export class Parser { export class Parser {

View File

@ -1,5 +1,5 @@
import * as marked from 'marked' import * as marked from 'marked'
import {isNamedSection, MarkMark} from '../types' import {isNamedSection, MarkMark} from '../types.js'
export class HtmlRenderer { export class HtmlRenderer {
public render(mm: MarkMark): string { public render(mm: MarkMark): string {

View File

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

View File

@ -1,4 +1,4 @@
import {isNamedSection, MarkMark} from '../types' import {isNamedSection, MarkMark} from '../types.js'
export class MarkMarkRenderer { export class MarkMarkRenderer {
public render(mm: MarkMark, frontmatter: boolean = true): string { public render(mm: MarkMark, frontmatter: boolean = true): string {

View File

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