Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 5, 2021
1 parent 25b0ba6 commit ec1b544
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@
},
"devDependencies": {
"c8": "^7.0.0",
"is-hidden": "^1.0.0",
"negate": "^1.0.0",
"is-hidden": "^2.0.0",
"prettier": "^2.0.0",
"remark": "^13.0.0",
"remark-cli": "^9.0.0",
"remark": "^14.0.0",
"remark-cli": "^10.0.0",
"remark-preset-wooorm": "^8.0.0",
"tape": "^5.0.0",
"xo": "^0.38.0"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ remark()
.process(
{
cwd: path.join('.', 'some', 'path', 'to', 'a', 'directory'),
contents: fs.readFileSync('example.md')
value: fs.readFileSync('example.md')
},
function(err, file) {
if (err) throw err
Expand Down
11 changes: 6 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import fs from 'fs'
import path from 'path'
import test from 'tape'
import remark from 'remark'
import hidden from 'is-hidden'
import negate from 'negate'
import {remark} from 'remark'
import {isHidden} from 'is-hidden'
import license from '../index.js'

var root = path.join('test', 'fixtures')
Expand Down Expand Up @@ -34,14 +33,16 @@ test('current working directory', function (t) {
})

test('Fixtures', async function (t) {
var fixtures = fs.readdirSync(root).filter(negate(hidden))
var fixtures = fs.readdirSync(root)
var index = -1

while (++index < fixtures.length) {
const name = fixtures[index]
let config
let output

if (isHidden(name)) continue

try {
config = JSON.parse(fs.readFileSync(path.join(root, name, 'config.json')))
} catch (_) {
Expand All @@ -67,7 +68,7 @@ test('Fixtures', async function (t) {
const file = await remark()
.use(license, config)
.process({
contents: fs.readFileSync(path.join(root, name, 'readme.md')),
value: fs.readFileSync(path.join(root, name, 'readme.md')),
cwd: path.join(root, name),
path: 'readme.md'
})
Expand Down

0 comments on commit ec1b544

Please sign in to comment.