@neovici/cfg 1.12.2 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/eslint/index.js CHANGED
@@ -1,5 +1,3 @@
1
- const path = require('path');
2
-
3
1
  module.exports = {
4
2
  env: {
5
3
  browser: true,
@@ -135,10 +133,5 @@ module.exports = {
135
133
  files: ['**/*.test.js'],
136
134
  extends: './test'
137
135
  }
138
- ],
139
- settings: {
140
- 'import/resolver': {
141
- [path.resolve(__dirname, 'node-enhanced.js')]: {},
142
- }
143
- }
136
+ ]
144
137
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cfg",
3
- "version": "1.12.2",
3
+ "version": "1.13.0",
4
4
  "description": "Configuration for Neovici packages",
5
5
  "homepage": "https://github.com/Neovici/cfg#readme",
6
6
  "bugs": {
@@ -48,14 +48,12 @@
48
48
  "@babel/core": "^7.16.0",
49
49
  "@babel/eslint-parser": "^7.16.0",
50
50
  "@web/test-runner-playwright": "^0.8.8",
51
- "enhanced-resolve": "^5.9.1",
52
51
  "eslint": "^8.2.0",
53
52
  "eslint-config-prettier": "^8.4.0",
54
53
  "eslint-import-resolver-alias": "^1.1.2",
55
54
  "eslint-plugin-html": "^6.2.0",
56
55
  "eslint-plugin-import": "^2.25.0",
57
56
  "eslint-plugin-mocha": "^10.0.0",
58
- "is-core-module": "^2.8.1",
59
57
  "prettier": "^2.5.0"
60
58
  },
61
59
  "devDependencies": {
@@ -1,26 +0,0 @@
1
- /* eslint-env node */
2
- /* eslint-disable import/group-exports */
3
- const { create } = require('enhanced-resolve'),
4
- path = require('path'),
5
- isCore = require('is-core-module');
6
-
7
- let resolver;
8
-
9
- exports.interfaceVersion = 2;
10
-
11
- exports.resolve = (source, file, config = {}) => {
12
- resolver = resolver || create.sync(config);
13
- if (isCore(source)) {
14
- return { found: true, path: null };
15
- }
16
-
17
- try {
18
- const resolved = resolver({}, path.dirname(file), source);
19
- return {
20
- found: true,
21
- path: resolved,
22
- };
23
- } catch (err) {
24
- return { found: false };
25
- }
26
- };