Skip to content

Commit

Permalink
fix specs on node 18.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyd committed Jun 21, 2024
1 parent 99293b8 commit c9b91e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node
import fs from 'node:fs'
import path from 'node:path'
import readline from 'node:readline'
import { flatten } from './index.js'
const fs = require('node:fs')
const path = require('node:path')
const readline = require('node:readline')
const { flatten } = require('./index.js')

const filepath = process.argv.slice(2)[0]
if (filepath) {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "@activeprospect/flat",
"version": "5.0.4",
"main": "index.js",
"bin": "cli.js",
"bin": {
"flat": "cli.js"
},
"scripts": {
"test": "node --test && standard cli.js index.js test/test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { readFileSync } = require('node:fs')
const path = require('node:path')
const { describe, test } = require('node:test')
const { flatten, unflatten } = require('../index.js')
const pkg = JSON.parse(readFileSync('./package.json'))
const pkg = JSON.parse(readFileSync('./package.json').toString())

const primitives = {
String: 'good morning',
Expand Down

0 comments on commit c9b91e3

Please sign in to comment.