Skip to content

Commit 1349189

Browse files
committed
Refactor to move files around
1 parent abb9a69 commit 1349189

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ node_modules/
55
.DS_Store
66
react-markdown.min.js
77
yarn.lock
8-
!/lib/complex-types.d.ts

.remarkignore

-1
This file was deleted.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@
121121
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
122122
"prepack": "npm run build && npm run format",
123123
"test": "npm run build && npm run format && npm run test-coverage",
124-
"test-api": "node --conditions development --experimental-loader=./test/loader.js --no-warnings test/test.jsx",
125-
"test-coverage": "c8 --100 --reporter lcov npm run test-api"
124+
"test-api": "node --conditions development --experimental-loader=./script/load-jsx.js --no-warnings test.jsx",
125+
"test-coverage": "c8 --100 --exclude script/ --reporter lcov npm run test-api"
126126
},
127127
"prettier": {
128128
"bracketSpacing": false,
@@ -182,7 +182,7 @@
182182
},
183183
{
184184
"files": [
185-
"test/**/*.jsx"
185+
"**/*.jsx"
186186
],
187187
"rules": {
188188
"no-unused-vars": "off"
File renamed without changes.

test/test.jsx renamed to test.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @jsxRuntime automatic @jsxImportSource react */
22
/**
33
* @typedef {import('hast').Root} Root
4-
* @typedef {import('../index.js').ExtraProps} ExtraProps
4+
* @typedef {import('./index.js').ExtraProps} ExtraProps
55
*/
66

77
import assert from 'node:assert/strict'
@@ -11,11 +11,11 @@ import rehypeRaw from 'rehype-raw'
1111
import remarkGfm from 'remark-gfm'
1212
import remarkToc from 'remark-toc'
1313
import {visit} from 'unist-util-visit'
14-
import Markdown from '../index.js'
14+
import Markdown from './index.js'
1515

1616
test('react-markdown', async function (t) {
1717
await t.test('should expose the public api', async function () {
18-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
18+
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
1919
'default',
2020
'uriTransformer'
2121
])

0 commit comments

Comments
 (0)