Skip to content

Commit 7c26483

Browse files
committed
[Breaking] remove core/isCore in favor of is-core-module package
1 parent 3d5a8a4 commit 7c26483

File tree

8 files changed

+2
-250
lines changed

8 files changed

+2
-250
lines changed

index.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
var async = require('./lib/async');
2-
async.core = require('./lib/core');
3-
async.isCore = require('./lib/is-core');
42
async.sync = require('./lib/sync');
53

64
module.exports = async;

index.mjs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
import async from 'resolve/async';
22
import sync from 'resolve/sync';
3-
import core from 'resolve/core';
4-
import isCore from 'resolve/isCore';
53

6-
Object.freeze(isCore);
7-
8-
export { async, sync, core, isCore };
4+
export { async, sync };

lib/core.js

-55
This file was deleted.

lib/core.json

-79
This file was deleted.

lib/is-core.js

-5
This file was deleted.

package.json

+1-19
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,6 @@
1515
},
1616
"./index.js"
1717
],
18-
"./core": [
19-
{
20-
"default": "./lib/core.js"
21-
},
22-
"./lib/core.js"
23-
],
24-
"./core.json": [
25-
{
26-
"default": "./lib/core.json"
27-
},
28-
"./lib/core.json"
29-
],
30-
"./isCore": [
31-
{
32-
"default": "./lib/is-core.js"
33-
},
34-
"./lib/is-core.js"
35-
],
3618
"./sync": [
3719
{
3820
"default": "./lib/sync.js"
@@ -53,7 +35,7 @@
5335
"module"
5436
],
5537
"scripts": {
56-
"prepublish": "safe-publish-latest && cp node_modules/is-core-module/core.json ./lib/",
38+
"prepublish": "safe-publish-latest",
5739
"lint": "eslint --ext=js,mjs .",
5840
"pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async",
5941
"tests-only": "tape test/*.js",

readme.markdown

-4
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,6 @@ default `opts` values:
224224
}
225225
```
226226

227-
## resolve.isCore(pkg)
228-
229-
Return whether a package is in core.
230-
231227
# install
232228

233229
With [npm](https://npmjs.org) do:

test/core.js

-81
This file was deleted.

0 commit comments

Comments
 (0)