Skip to content

Commit

Permalink
Change to simplify micromark export map
Browse files Browse the repository at this point in the history
If you were using the micromark internals, you can now get them
from `micromark`, instead of fake “paths” like
`micromark/lib/preprocess`.
  • Loading branch information
wooorm committed Jun 18, 2023
1 parent 6c59174 commit ddb9f2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
5 changes: 5 additions & 0 deletions packages/micromark/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import {parse} from './lib/parse.js'
import {postprocess} from './lib/postprocess.js'
import {preprocess} from './lib/preprocess.js'

export {compile} from './lib/compile.js'
export {parse} from './lib/parse.js'
export {postprocess} from './lib/postprocess.js'
export {preprocess} from './lib/preprocess.js'

/**
* Compile markdown to HTML.
*
Expand Down
16 changes: 0 additions & 16 deletions packages/micromark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,6 @@
"./stream": {
"development": "./dev/stream.js",
"default": "./stream.js"
},
"./lib/compile": {
"development": "./dev/lib/compile.js",
"default": "./lib/compile.js"
},
"./lib/parse": {
"development": "./dev/lib/parse.js",
"default": "./lib/parse.js"
},
"./lib/postprocess": {
"development": "./dev/lib/postprocess.js",
"default": "./lib/postprocess.js"
},
"./lib/preprocess": {
"development": "./dev/lib/preprocess.js",
"default": "./lib/preprocess.js"
}
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions test/misc/slice-chunks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import {parse} from 'micromark/lib/parse'
import {postprocess} from 'micromark/lib/postprocess'
import {preprocess} from 'micromark/lib/preprocess'
import {parse, postprocess, preprocess} from 'micromark'

test('sliceSerialize', () => {
assert.deepEqual(
Expand Down

0 comments on commit ddb9f2f

Please sign in to comment.