Skip to content

Commit

Permalink
fix(package.json): Address main field deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vinsonchuong committed Jul 11, 2021
1 parent 120e651 commit 57a7533
Show file tree
Hide file tree
Showing 6 changed files with 1,405 additions and 1,246 deletions.
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@
"license": "MIT",
"author": "Vinson Chuong <[email protected]>",
"repository": "vinsonchuong/ava-patterns",
"main": "index.js",
"scripts": {
"test": "xo && ava",
"release": "semantic-release"
},
"type": "module",
"dependencies": {
"fs-extra": "^9.0.1",
"passing-notes": "^6.3.0",
"strip-indent": "^3.0.0",
"tempy": "^1.0.0"
"fs-extra": "^10.0.0",
"passing-notes": "^6.5.1",
"strip-indent": "^4.0.0",
"tempy": "^1.0.1"
},
"devDependencies": {
"ava": "^3.13.0",
"got": "^11.8.0",
"semantic-release": "^17.3.0",
"xo": "^0.35.0"
"ava": "^3.15.0",
"got": "^11.8.2",
"semantic-release": "^17.4.4",
"xo": "^0.41.0"
},
"ava": {
"verbose": true
Expand Down
6 changes: 3 additions & 3 deletions run-process/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {spawn} from 'child_process'
import {PassThrough} from 'stream'
import {spawn} from 'node:child_process'
import {PassThrough} from 'node:stream'
import {wait} from '../index.js'

export default function (
Expand Down Expand Up @@ -59,7 +59,7 @@ export default function (
const match =
typeof pattern === 'string'
? (string) => string.includes(pattern)
: (string) => Boolean(string.match(pattern))
: (string) => Boolean(pattern.test(string))

await Promise.race([
(async () => {
Expand Down
2 changes: 1 addition & 1 deletion use-temporary-directory/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path'
import path from 'node:path'
import fs from 'fs-extra'
import tempy from 'tempy'
import stripIndent from 'strip-indent'
Expand Down
4 changes: 2 additions & 2 deletions use-temporary-directory/index.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'node:path'
import {promises as fs} from 'node:fs'
import test from 'ava'
import path from 'path'
import {promises as fs} from 'fs'
import {useTemporaryDirectory, runProcess} from '../index.js'

test.serial('creating a directory', async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion wait/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import {promisify} from 'util'
import {promisify} from 'node:util'

export default promisify(setTimeout)
Loading

0 comments on commit 57a7533

Please sign in to comment.