@origin-1/eslint-config 0.3.2 → 0.4.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/index.d.ts +0 -1
- package/index.js +5 -1
- package/package.json +3 -2
- package/patch-tslib.js +23 -0
- package/lib/patch-tslib.js +0 -13
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -13,6 +13,10 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
16
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
require("./
|
|
20
|
+
const patch_tslib_js_1 = __importDefault(require("./patch-tslib.js"));
|
|
21
|
+
(0, patch_tslib_js_1.default)(require);
|
|
18
22
|
__exportStar(require("./lib/create-config.js"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origin-1/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "ESLint configuration generator with origin-1 presets",
|
|
5
5
|
"homepage": "https://github.com/origin-1/eslint-config#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
".": "./index.js",
|
|
25
25
|
"./no-parser": "./no-parser.js",
|
|
26
|
-
"./package.json": "./package.json"
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
"./patch-tslib": "./patch-tslib.js"
|
|
27
28
|
}
|
|
28
29
|
}
|
package/patch-tslib.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const node_module_1 = require("node:module");
|
|
4
|
+
function patchTslib(require) {
|
|
5
|
+
let tsutilsPath;
|
|
6
|
+
const { resolve } = require;
|
|
7
|
+
try {
|
|
8
|
+
tsutilsPath = resolve('tsutils');
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
const tsutilsRequire = (0, node_module_1.createRequire)(tsutilsPath);
|
|
14
|
+
const originalGlobal = globalThis.global;
|
|
15
|
+
globalThis.global = {};
|
|
16
|
+
try {
|
|
17
|
+
tsutilsRequire('tslib');
|
|
18
|
+
}
|
|
19
|
+
finally {
|
|
20
|
+
globalThis.global = originalGlobal;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = patchTslib;
|
package/lib/patch-tslib.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const node_module_1 = require("node:module");
|
|
4
|
-
const tsutilsPath = require.resolve('tsutils');
|
|
5
|
-
const tsutilsRequire = (0, node_module_1.createRequire)(tsutilsPath);
|
|
6
|
-
const originalGlobal = globalThis.global;
|
|
7
|
-
globalThis.global = {};
|
|
8
|
-
try {
|
|
9
|
-
tsutilsRequire('tslib');
|
|
10
|
-
}
|
|
11
|
-
finally {
|
|
12
|
-
globalThis.global = originalGlobal;
|
|
13
|
-
}
|