From 572a1c956bf94bed59f8209ee3f12671b619efb6 Mon Sep 17 00:00:00 2001 From: Ryan Zimmerman Date: Mon, 24 Oct 2022 15:07:02 -0400 Subject: [PATCH] BREAKING: Switch from main to exports --- package.json | 2 +- test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c05dc2bfe..ee3c6b519 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "read-dir-files": "^0.1.1", "standard": "^16.0.3" }, - "main": "./lib/index.js", + "exports": "./lib/index.js", "files": [ "lib/", "!lib/**/__tests__/" diff --git a/test.js b/test.js index b50b44ec3..bb36520fc 100644 --- a/test.js +++ b/test.js @@ -26,6 +26,6 @@ klaw('./lib').on('readable', function () { } }).on('end', () => { mocha.run(failures => { - require('./').remove(path.join(os.tmpdir(), 'fs-extra'), () => process.exit(failures)) + require('./lib').remove(path.join(os.tmpdir(), 'fs-extra'), () => process.exit(failures)) }) })