Skip to content

Commit

Permalink
Refactor to move files around
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 27, 2023
1 parent abb9a69 commit 1349189
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ node_modules/
.DS_Store
react-markdown.min.js
yarn.lock
!/lib/complex-types.d.ts
1 change: 0 additions & 1 deletion .remarkignore

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
"prepack": "npm run build && npm run format",
"test": "npm run build && npm run format && npm run test-coverage",
"test-api": "node --conditions development --experimental-loader=./test/loader.js --no-warnings test/test.jsx",
"test-coverage": "c8 --100 --reporter lcov npm run test-api"
"test-api": "node --conditions development --experimental-loader=./script/load-jsx.js --no-warnings test.jsx",
"test-coverage": "c8 --100 --exclude script/ --reporter lcov npm run test-api"
},
"prettier": {
"bracketSpacing": false,
Expand Down Expand Up @@ -182,7 +182,7 @@
},
{
"files": [
"test/**/*.jsx"
"**/*.jsx"
],
"rules": {
"no-unused-vars": "off"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/test.jsx → test.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @jsxRuntime automatic @jsxImportSource react */
/**
* @typedef {import('hast').Root} Root
* @typedef {import('../index.js').ExtraProps} ExtraProps
* @typedef {import('./index.js').ExtraProps} ExtraProps
*/

import assert from 'node:assert/strict'
Expand All @@ -11,11 +11,11 @@ import rehypeRaw from 'rehype-raw'
import remarkGfm from 'remark-gfm'
import remarkToc from 'remark-toc'
import {visit} from 'unist-util-visit'
import Markdown from '../index.js'
import Markdown from './index.js'

test('react-markdown', async function (t) {
await t.test('should expose the public api', async function () {
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
'default',
'uriTransformer'
])
Expand Down

0 comments on commit 1349189

Please sign in to comment.