@monorepolint/config 0.5.0-alpha.103
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/.turbo/turbo-clean.log +4 -0
- package/.turbo/turbo-compile-typescript.log +4 -0
- package/.turbo/turbo-lint.log +12 -0
- package/.turbo/turbo-test.log +5 -0
- package/.turbo/turbo-transpile-typescript.log +18 -0
- package/LICENSE +21 -0
- package/build/js/index.cjs +73 -0
- package/build/js/index.cjs.map +1 -0
- package/build/js/index.js +36 -0
- package/build/js/index.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/types/Config.d.ts +103 -0
- package/build/types/Config.d.ts.map +1 -0
- package/build/types/Context.d.ts +43 -0
- package/build/types/Context.d.ts.map +1 -0
- package/build/types/PackageContext.d.ts +9 -0
- package/build/types/PackageContext.d.ts.map +1 -0
- package/build/types/WorkspaceContext.d.ts +13 -0
- package/build/types/WorkspaceContext.d.ts.map +1 -0
- package/build/types/index.d.ts +11 -0
- package/build/types/index.d.ts.map +1 -0
- package/jest.config.cjs +4 -0
- package/package.json +50 -0
- package/src/Config.ts +76 -0
- package/src/Context.ts +54 -0
- package/src/PackageContext.ts +9 -0
- package/src/WorkspaceContext.ts +14 -0
- package/src/index.ts +22 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
> @monorepolint/config@0.4.0 lint /home/runner/work/monorepolint/monorepolint/packages/config
|
|
3
|
+
> eslint .
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/home/runner/work/monorepolint/monorepolint/packages/config/src/Config.ts
|
|
7
|
+
57:18 warning An interface declaring no members is equivalent to its supertype @typescript-eslint/no-empty-interface
|
|
8
|
+
72:18 warning An interface declaring no members is equivalent to its supertype @typescript-eslint/no-empty-interface
|
|
9
|
+
|
|
10
|
+
✖ 2 problems (0 errors, 2 warnings)
|
|
11
|
+
0 errors and 2 warnings potentially fixable with the `--fix` option.
|
|
12
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
> @monorepolint/config@0.4.0 transpile-typescript /home/runner/work/monorepolint/monorepolint/packages/config
|
|
3
|
+
> tsup --config ../../tsup.config.cjs
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v6.5.0
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/monorepolint/monorepolint/tsup.config.cjs
|
|
9
|
+
[34mCLI[39m Target: es2020
|
|
10
|
+
[34mCLI[39m Cleaning output folder
|
|
11
|
+
[34mCJS[39m Build start
|
|
12
|
+
[34mESM[39m Build start
|
|
13
|
+
[32mESM[39m [1mbuild/js/index.js [22m[32m855.00 B[39m
|
|
14
|
+
[32mESM[39m [1mbuild/js/index.js.map [22m[32m2.82 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 60ms
|
|
16
|
+
[32mCJS[39m [1mbuild/js/index.cjs [22m[32m2.27 KB[39m
|
|
17
|
+
[32mCJS[39m [1mbuild/js/index.cjs.map [22m[32m3.47 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 62ms
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Palantir Technologies, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// src/index.ts
|
|
27
|
+
var src_exports = {};
|
|
28
|
+
__export(src_exports, {
|
|
29
|
+
Config: () => Config,
|
|
30
|
+
LegacyConfig: () => LegacyConfig,
|
|
31
|
+
LegacyRules: () => LegacyRules,
|
|
32
|
+
RuleEntry: () => RuleEntry,
|
|
33
|
+
RuleModule: () => RuleModule
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(src_exports);
|
|
36
|
+
|
|
37
|
+
// src/Config.ts
|
|
38
|
+
var r = __toESM(require("runtypes"), 1);
|
|
39
|
+
var RuleEntry = r.Partial({
|
|
40
|
+
options: r.Unknown,
|
|
41
|
+
excludePackages: r.Array(r.String),
|
|
42
|
+
includePackages: r.Array(r.String),
|
|
43
|
+
includeWorkspaceRoot: r.Boolean,
|
|
44
|
+
id: r.String.optional()
|
|
45
|
+
});
|
|
46
|
+
var RuleModule = r.Record({
|
|
47
|
+
check: r.Function,
|
|
48
|
+
optionsRuntype: r.Unknown,
|
|
49
|
+
printStats: r.Function.optional()
|
|
50
|
+
});
|
|
51
|
+
var LegacyRules = r.Dictionary(RuleEntry.Or(r.Array(RuleEntry)).Or(r.Boolean));
|
|
52
|
+
var Config = r.Record({
|
|
53
|
+
rules: r.Array(r.Unknown),
|
|
54
|
+
legacyRules: LegacyRules.optional()
|
|
55
|
+
});
|
|
56
|
+
var LegacyConfig = r.Record({
|
|
57
|
+
rules: LegacyRules.optional()
|
|
58
|
+
});
|
|
59
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
+
0 && (module.exports = {
|
|
61
|
+
Config,
|
|
62
|
+
LegacyConfig,
|
|
63
|
+
LegacyRules,
|
|
64
|
+
RuleEntry,
|
|
65
|
+
RuleModule
|
|
66
|
+
});
|
|
67
|
+
/*!
|
|
68
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
69
|
+
*
|
|
70
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Config.ts"],"sourcesContent":["/*!\n * Copyright 2019 Palantir Technologies, Inc.\n *\n * Licensed under the MIT license. See LICENSE file in the project root for details.\n *\n */\n\nexport {\n Config,\n LegacyRules,\n RuleEntry,\n Checker,\n LegacyConfig,\n Options,\n ResolvedConfig,\n ResolvedRule,\n RuleModule,\n NewRuleModule,\n} from \"./Config.js\";\nexport { PackageContext } from \"./PackageContext.js\";\nexport { WorkspaceContext } from \"./WorkspaceContext.js\";\nexport { AddErrorAsyncOptions, AddErrorOptions, AddErrorSyncOrAsyncOptions, Context, Failure } from \"./Context.js\";\n","/*!\n * Copyright 2019 Palantir Technologies, Inc.\n *\n * Licensed under the MIT license. See LICENSE file in the project root for details.\n *\n */\n\nimport * as r from \"runtypes\";\nimport { Context } from \"./Context.js\";\n// TODO: extract all these types to their own files\n\nexport const RuleEntry = r.Partial({\n options: r.Unknown,\n excludePackages: r.Array(r.String),\n includePackages: r.Array(r.String),\n includeWorkspaceRoot: r.Boolean,\n id: r.String.optional(),\n});\nexport interface RuleEntry<T = unknown> extends r.Static<typeof RuleEntry> {\n options?: T;\n}\n\nexport const RuleModule = r.Record({\n check: r.Function,\n optionsRuntype: r.Unknown,\n printStats: r.Function.optional(),\n});\nexport interface RuleModule<T extends r.Runtype = r.Runtype> extends r.Static<typeof RuleModule> {\n check: Checker<T>;\n optionsRuntype: T;\n}\n\nexport interface NewRuleModule<T extends r.Runtype = r.Runtype> {\n check: (context: Context) => Promise<unknown> | unknown;\n name: string;\n id: string;\n optionsRuntype: T;\n printStats?: () => void;\n ruleEntry: RuleEntry<r.Static<T>>;\n}\n\nexport const LegacyRules = r.Dictionary(RuleEntry.Or(r.Array(RuleEntry)).Or(r.Boolean));\nexport type LegacyRules = r.Static<typeof LegacyRules>;\n\nexport const Config = r.Record({\n rules: r.Array(r.Unknown),\n legacyRules: LegacyRules.optional(),\n});\nexport interface Config extends r.Static<typeof Config> {\n rules: NewRuleModule[];\n}\n\nexport const LegacyConfig = r.Record({\n rules: LegacyRules.optional(),\n});\n\nexport interface LegacyConfig extends r.Static<typeof LegacyConfig> {}\n\nexport interface Options {\n readonly verbose?: boolean;\n readonly fix?: boolean;\n readonly paths?: ReadonlyArray<string>;\n readonly silent?: boolean;\n readonly stats?: boolean;\n}\n\n// TODO: Make the extra param required. I'm not doing it now because this change is hard enough to read\nexport type Checker<T extends r.Runtype> =\n | ((context: Context, args: r.Static<T>, extra?: { id: string }) => void)\n | ((context: Context, args: r.Static<T>, extra?: { id: string }) => Promise<void>);\n\nexport interface ResolvedRule<T extends r.Runtype = r.Runtype> extends NewRuleModule<T> {}\n\nexport interface ResolvedConfig extends Options {\n readonly rules: ReadonlyArray<ResolvedRule>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACOA,QAAmB;AAIZ,IAAM,YAAc,UAAQ;AAAA,EACjC,SAAW;AAAA,EACX,iBAAmB,QAAQ,QAAM;AAAA,EACjC,iBAAmB,QAAQ,QAAM;AAAA,EACjC,sBAAwB;AAAA,EACxB,IAAM,SAAO,SAAS;AACxB,CAAC;AAKM,IAAM,aAAe,SAAO;AAAA,EACjC,OAAS;AAAA,EACT,gBAAkB;AAAA,EAClB,YAAc,WAAS,SAAS;AAClC,CAAC;AAeM,IAAM,cAAgB,aAAW,UAAU,GAAK,QAAM,SAAS,CAAC,EAAE,GAAK,SAAO,CAAC;AAG/E,IAAM,SAAW,SAAO;AAAA,EAC7B,OAAS,QAAQ,SAAO;AAAA,EACxB,aAAa,YAAY,SAAS;AACpC,CAAC;AAKM,IAAM,eAAiB,SAAO;AAAA,EACnC,OAAO,YAAY,SAAS;AAC9B,CAAC;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/Config.ts
|
|
2
|
+
import * as r from "runtypes";
|
|
3
|
+
var RuleEntry = r.Partial({
|
|
4
|
+
options: r.Unknown,
|
|
5
|
+
excludePackages: r.Array(r.String),
|
|
6
|
+
includePackages: r.Array(r.String),
|
|
7
|
+
includeWorkspaceRoot: r.Boolean,
|
|
8
|
+
id: r.String.optional()
|
|
9
|
+
});
|
|
10
|
+
var RuleModule = r.Record({
|
|
11
|
+
check: r.Function,
|
|
12
|
+
optionsRuntype: r.Unknown,
|
|
13
|
+
printStats: r.Function.optional()
|
|
14
|
+
});
|
|
15
|
+
var LegacyRules = r.Dictionary(RuleEntry.Or(r.Array(RuleEntry)).Or(r.Boolean));
|
|
16
|
+
var Config = r.Record({
|
|
17
|
+
rules: r.Array(r.Unknown),
|
|
18
|
+
legacyRules: LegacyRules.optional()
|
|
19
|
+
});
|
|
20
|
+
var LegacyConfig = r.Record({
|
|
21
|
+
rules: LegacyRules.optional()
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
Config,
|
|
25
|
+
LegacyConfig,
|
|
26
|
+
LegacyRules,
|
|
27
|
+
RuleEntry,
|
|
28
|
+
RuleModule
|
|
29
|
+
};
|
|
30
|
+
/*!
|
|
31
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
32
|
+
*
|
|
33
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts"],"sourcesContent":["/*!\n * Copyright 2019 Palantir Technologies, Inc.\n *\n * Licensed under the MIT license. See LICENSE file in the project root for details.\n *\n */\n\nimport * as r from \"runtypes\";\nimport { Context } from \"./Context.js\";\n// TODO: extract all these types to their own files\n\nexport const RuleEntry = r.Partial({\n options: r.Unknown,\n excludePackages: r.Array(r.String),\n includePackages: r.Array(r.String),\n includeWorkspaceRoot: r.Boolean,\n id: r.String.optional(),\n});\nexport interface RuleEntry<T = unknown> extends r.Static<typeof RuleEntry> {\n options?: T;\n}\n\nexport const RuleModule = r.Record({\n check: r.Function,\n optionsRuntype: r.Unknown,\n printStats: r.Function.optional(),\n});\nexport interface RuleModule<T extends r.Runtype = r.Runtype> extends r.Static<typeof RuleModule> {\n check: Checker<T>;\n optionsRuntype: T;\n}\n\nexport interface NewRuleModule<T extends r.Runtype = r.Runtype> {\n check: (context: Context) => Promise<unknown> | unknown;\n name: string;\n id: string;\n optionsRuntype: T;\n printStats?: () => void;\n ruleEntry: RuleEntry<r.Static<T>>;\n}\n\nexport const LegacyRules = r.Dictionary(RuleEntry.Or(r.Array(RuleEntry)).Or(r.Boolean));\nexport type LegacyRules = r.Static<typeof LegacyRules>;\n\nexport const Config = r.Record({\n rules: r.Array(r.Unknown),\n legacyRules: LegacyRules.optional(),\n});\nexport interface Config extends r.Static<typeof Config> {\n rules: NewRuleModule[];\n}\n\nexport const LegacyConfig = r.Record({\n rules: LegacyRules.optional(),\n});\n\nexport interface LegacyConfig extends r.Static<typeof LegacyConfig> {}\n\nexport interface Options {\n readonly verbose?: boolean;\n readonly fix?: boolean;\n readonly paths?: ReadonlyArray<string>;\n readonly silent?: boolean;\n readonly stats?: boolean;\n}\n\n// TODO: Make the extra param required. I'm not doing it now because this change is hard enough to read\nexport type Checker<T extends r.Runtype> =\n | ((context: Context, args: r.Static<T>, extra?: { id: string }) => void)\n | ((context: Context, args: r.Static<T>, extra?: { id: string }) => Promise<void>);\n\nexport interface ResolvedRule<T extends r.Runtype = r.Runtype> extends NewRuleModule<T> {}\n\nexport interface ResolvedConfig extends Options {\n readonly rules: ReadonlyArray<ResolvedRule>;\n}\n"],"mappings":";AAOA,YAAY,OAAO;AAIZ,IAAM,YAAc,UAAQ;AAAA,EACjC,SAAW;AAAA,EACX,iBAAmB,QAAQ,QAAM;AAAA,EACjC,iBAAmB,QAAQ,QAAM;AAAA,EACjC,sBAAwB;AAAA,EACxB,IAAM,SAAO,SAAS;AACxB,CAAC;AAKM,IAAM,aAAe,SAAO;AAAA,EACjC,OAAS;AAAA,EACT,gBAAkB;AAAA,EAClB,YAAc,WAAS,SAAS;AAClC,CAAC;AAeM,IAAM,cAAgB,aAAW,UAAU,GAAK,QAAM,SAAS,CAAC,EAAE,GAAK,SAAO,CAAC;AAG/E,IAAM,SAAW,SAAO;AAAA,EAC7B,OAAS,QAAQ,SAAO;AAAA,EACxB,aAAa,YAAY,SAAS;AACpC,CAAC;AAKM,IAAM,eAAiB,SAAO;AAAA,EACnC,OAAO,YAAY,SAAS;AAC9B,CAAC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/tslib@2.4.1/node_modules/tslib/tslib.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/union.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/literal.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/unknown.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/constraint.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/instanceof.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/reflect.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/runtype.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/result.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/contract.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/asynccontract.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/match.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/errors.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/never.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/void.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/template.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/boolean.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/number.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/bigint.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/string.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/symbol.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/array.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/tuple.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/optional.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/record.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/dictionary.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/intersect.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/function.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/lazy.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/types/brand.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/decorator.d.ts","../../../node_modules/.pnpm/runtypes@6.6.0/node_modules/runtypes/lib/index.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@18.11.11/node_modules/@types/node/index.d.ts","../../utils/build/types/Host.d.ts","../../utils/build/types/getWorkspacePackageDirs.d.ts","../../utils/build/types/mutateJson.d.ts","../../utils/build/types/PackageJson.d.ts","../../utils/build/types/findWorkspaceDir.d.ts","../../utils/build/types/getPackageNameToDir.d.ts","../../utils/build/types/SimpleHost.d.ts","../../utils/build/types/CachingHost.d.ts","../../utils/build/types/matchesAnyGlob.d.ts","../../utils/build/types/nanosecondsToSanity.d.ts","../../utils/build/types/AggregateTiming.d.ts","../../utils/build/types/Timing.d.ts","../../utils/build/types/Table.d.ts","../../utils/build/types/index.d.ts","../src/PackageContext.ts","../src/WorkspaceContext.ts","../src/Context.ts","../src/Config.ts","../src/index.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","impliedFormat":1},{"version":"7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","impliedFormat":1},{"version":"8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","impliedFormat":1},{"version":"5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","impliedFormat":1},{"version":"4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","impliedFormat":1},{"version":"1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","impliedFormat":1},{"version":"746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","impliedFormat":1},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true,"impliedFormat":1},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true,"impliedFormat":1},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true,"impliedFormat":1},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true,"impliedFormat":1},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true,"impliedFormat":1},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true,"impliedFormat":1},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true,"impliedFormat":1},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true,"impliedFormat":1},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true,"impliedFormat":1},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true,"impliedFormat":1},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true,"impliedFormat":1},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true,"impliedFormat":1},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e","impliedFormat":1},{"version":"4edd6956984539f858db96d9dc44dbf6bfc64c7067eaca3c4dd0b22215c77027","impliedFormat":1},{"version":"7b32f34cd9de174153a17eca138eec5c891ed2af5d9777c42cf0ba57fb0815b5","impliedFormat":1},{"version":"3123f2c69d51a40a561e9f99c8d15a7038621081abd5f47a71210096ac8e1814","impliedFormat":1},{"version":"9ac27e0391cdc1d6a881e92939f576d57bea61a052af6850e5aba63f7dc75f7e","impliedFormat":1},{"version":"2205fa8d555344622173f9773a6ad41cdafebf5c6acdfd79e30847b2f99a34cf","impliedFormat":1},{"version":"ae4da23624477e9a11bf3311a25f9d6e271dc73d479b0939676e72471bb0c7b9","impliedFormat":1},{"version":"9280c3ef4d017c0ecdf1a845b9aaa655ea877e62fafc42ea9ab46699c86ba401","impliedFormat":1},{"version":"9489e70cbe7d6b151f554504e9fa636214d2763a8c9eee8fb074924bec52687d","impliedFormat":1},{"version":"bab9ae5149daf8cd7f4d0be08394b45abb461c1eb1f37204611f1394129d6de6","impliedFormat":1},{"version":"aee7078023ca1adda134f8cc0a956c2c1ee7c6395900c91122134efbfd9a3b2a","impliedFormat":1},{"version":"e8b22941c184258ee43221dd990fc9536df2b6add7a7660249e7eb6c8fa4c0cf","impliedFormat":1},{"version":"35daeff60ff19ad45bddbd2aa3b698751d2787eb4d93ec96acaaf7600407aaf9","impliedFormat":1},{"version":"e70e5b1e9f5c8fb057dccd80b24ac684043c615f888c06d6a44551e5134535e8","impliedFormat":1},{"version":"bce521f55b95d2a5b0857efdfbec2f50fa491dc80b1d1f8fd1a98d2581afc498","impliedFormat":1},{"version":"da12c82783d1070add63b906b033c30dc29153189452cde21c64aebe5354f560","impliedFormat":1},{"version":"d3f20af05d538b2f5e387ffe9a10fcc5f3bb32bc04671bd08974faa796a59cad","impliedFormat":1},{"version":"1773602916bee106c96ec3ae20a76888d66786b57efa319bce01ac0888465bfe","impliedFormat":1},{"version":"cb22d368f6ff3ccbced04addac26041421baf3c15cf53edd8c2495fc061e077d","impliedFormat":1},{"version":"abe21aeda5df689f1f74e255a84a9457d17f0532105832ecf416b5f3e42b54ff","impliedFormat":1},{"version":"62bc3764e2495024c58cbb96fb39ea9d71128bf437f4085c4a1518eaa63e446e","impliedFormat":1},{"version":"6e35c492cc91608fc858627a9441d714bd2a087e8775ecbe2f664d1c9f140676","impliedFormat":1},{"version":"22aec566956a4070124a9d08718b391d2271a0e4b9e310fc7679cbdf40e9d4f3","impliedFormat":1},{"version":"a6f7d4c6026e67eb8059a73872ef86fc5de394efe1a6d4710f89b057d11a7247","impliedFormat":1},{"version":"a061a4e5b960beb6cbc730640e7c5f1c22dcf8fe812a7530430d7c0dfc51a5d6","impliedFormat":1},{"version":"78f2fae59445f065687b3cb2aa3e35e5dfaa797471636e0f1d4b055dd80a9f8a","impliedFormat":1},{"version":"91e50c7d0494c484898b55231c61c7db1457d5974b51677d382edef8f90b4ed3","impliedFormat":1},{"version":"3055642b3986218f66301a7ec1ddd5c77bc836437cb5ac66186eb079e4dd9e07","impliedFormat":1},{"version":"b420e3fdfd41cd3c2a51ef86c8bb43724643aefe221d2195c8ba6f129a6f8b9b","impliedFormat":1},{"version":"463424dd9e1e5020d67fa0724d004fc321baeed0f395f132d4509a020f2789dd","impliedFormat":1},{"version":"f040e3800469ce990f153622fe508174f7c33a3627014e43587b1c91d8ef6335","impliedFormat":1},{"version":"93b40cccb84adf216109e4f241fd9a871d40029ef43fc0779d9dfb443d007d81","impliedFormat":1},{"version":"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true,"impliedFormat":1},{"version":"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9","impliedFormat":1},{"version":"bb65c6267c5d6676be61acbf6604cf0a4555ac4b505df58ac15c831fcbff4e3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","impliedFormat":1},{"version":"5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713","impliedFormat":1},{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f","impliedFormat":1},{"version":"bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","impliedFormat":1},{"version":"489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","impliedFormat":1},{"version":"f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","impliedFormat":1},{"version":"14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","impliedFormat":1},{"version":"5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea","impliedFormat":1},{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true,"impliedFormat":1},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true,"impliedFormat":1},{"version":"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","impliedFormat":1},{"version":"d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","impliedFormat":1},{"version":"b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990","impliedFormat":1},{"version":"04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","impliedFormat":1},{"version":"dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","impliedFormat":1},{"version":"2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58","impliedFormat":1},{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true,"impliedFormat":1},{"version":"d076fede3cb042e7b13fc29442aaa03a57806bc51e2b26a67a01fbc66a7c0c12","impliedFormat":1},{"version":"7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","impliedFormat":1},{"version":"b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30","impliedFormat":1},{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true,"impliedFormat":1},{"version":"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","impliedFormat":1},{"version":"210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","impliedFormat":1},{"version":"36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","impliedFormat":1},{"version":"0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","impliedFormat":1},{"version":"25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","impliedFormat":1},{"version":"fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","impliedFormat":1},{"version":"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","impliedFormat":1},{"version":"23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","impliedFormat":1},{"version":"213fc4f2b172d8beb74b77d7c1b41488d67348066d185e4263470cbb010cd6e8","impliedFormat":1},{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","impliedFormat":1},{"version":"4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","impliedFormat":1},{"version":"3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","impliedFormat":1},{"version":"5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2","impliedFormat":1},{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true,"impliedFormat":1},{"version":"f7db71191aa7aac5d6bc927ed6e7075c2763d22c7238227ec0c63c8cf5cb6a8b","affectsGlobalScope":true,"impliedFormat":1},{"version":"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","impliedFormat":1},{"version":"ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","impliedFormat":1},{"version":"e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","impliedFormat":1},{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e9a8d4274033cb520ee12d6f68d161ba2b9128b87399645d3916b71187032836","impliedFormat":1},{"version":"dbfd6d2a17da1edbd32bd28beca81e982cfc3c3dfb73be6824047e92a4697b53","impliedFormat":99},{"version":"e5dc403d43993e5855eee53202e3f968fdc5a104021f9f81dda012f32644640f","impliedFormat":99},{"version":"5d215914f7f67dd9a268dd3af0cd8893d5d03d9bfc7d4ab24ee3c67c3831bb96","impliedFormat":99},{"version":"a41984c40bfd2af09be5aa0d06b3c30103d499148fd1a16dbd17f0670a9f69df","impliedFormat":99},{"version":"fd3141380b5926f3b74e1dc5a818b6a9dc16498816e7b9f6f9f441480828300e","impliedFormat":99},{"version":"adb127b87fd17764cadad119a01cf09ab2d18807119fd093d62997be95975187","impliedFormat":99},{"version":"0cae245616bbfda99672ffac3bc60f02f91db6914b4e30861437a45c99fbab61","impliedFormat":99},{"version":"f8c846a6e5a81e55d3a59b49ddc9c7c448bb8b00778f9be081470206dbe82458","impliedFormat":99},{"version":"8f9d196151007b55b01cb9736ae6036d076f1bf4ba090a69132d08b930501fea","impliedFormat":99},{"version":"4b609faae7fe8f0c7c0776719d078fcfc549eae816a2d716b385c1cb90487732","impliedFormat":99},{"version":"9333c7afc6d1233d7741ea6448e7ed19740bdcfc2dee860c10a7cc3d6966e26e","impliedFormat":99},{"version":"ab86bb5ed73c3b7d9915a79b42acfdb791f4e6d4ab9be0dff89596364eb3cb1b","impliedFormat":99},{"version":"b9136d4403c35729e62a23dba2fbeabbd49c36355318014d5837f4aad310f1bb","impliedFormat":99},{"version":"4b32ed600717c154922e2decacab588001e8841dddfb8c0a903daf2a917f48f8","impliedFormat":99},{"version":"490349fb449bf75acb06526a7853a71394d7b50665151da7b4f0b85636135b26","signature":"3607e0a50babfc164f6d0dc42ec23c7bdff93a8662a878c0f8f0b899b7df31d1","impliedFormat":99},{"version":"78976aad54e42db2787ad494adeb2eb084b80a3c02bb6a98bb61cc8c597c89ff","signature":"2eb8a176d8d971b89cbe5b954b6b54ff97586317925d218d81aae555289d04ec","impliedFormat":99},{"version":"0693849d02f7ab2f1bea25208a6d8f8149a62941c6df6d784f9ade0ac4325b0c","signature":"db552a437f41771a7a8fc0a666f2d31cc4242083146b146d5162c98a053b6b4f","impliedFormat":99},{"version":"fd33b3e3f80beaaf5950a31260023b60708a0fcddbcdea7fec72b7fbc8265d57","signature":"66373be372655a53908ea1ec7fa180cdc487f0c9f16afe2151f5df634d100a20","impliedFormat":99},{"version":"f716d1adb1be42748ba1596132c92afc8c7ec1ca100baa4c0a5465fcb9cf1c67","signature":"8467110b8e2f91a5d5204bbb882eebd22bc0138edf489d28f21956963d42c269","impliedFormat":99}],"options":{"allowSyntheticDefaultImports":false,"composite":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"importHelpers":true,"module":6,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./js","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"fileIdsList":[[79,125],[82,125],[83,88,116,125],[84,95,96,103,113,124,125],[84,85,95,103,125],[86,125],[87,88,96,104,125],[88,113,121,125],[89,91,95,103,125],[90,125],[91,92,125],[95,125],[93,95,125],[95,96,97,113,124,125],[95,96,97,110,113,116,125],[125,129],[125],[98,103,113,124,125],[95,96,98,99,103,113,121,124,125],[98,100,113,121,124,125],[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],[95,101,125],[102,124,125],[91,95,103,113,125],[104,125],[105,125],[82,106,125],[107,123,125,129],[108,125],[109,125],[95,110,111,125],[110,112,125,127],[83,95,113,114,115,116,125],[83,113,115,125],[113,114,125],[116,125],[117,125],[95,119,120,125],[119,120,125],[88,103,113,121,125],[122,125],[103,123,125],[83,98,109,124,125],[88,125],[113,125,126],[125,127],[125,128],[83,88,95,97,106,113,124,125,127,129],[113,125,130],[54,125],[55,125],[48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,125],[48,54,125],[49,51,52,54,125],[53,78,125],[50,54,125],[54,70,125],[49,54,125],[50,125],[47,78,125,149],[47,125,146,148,150],[47,125,149],[47,125,147],[47,125,147,148,149,150],[96,125,132,133],[125,132],[125,133],[125,133,134,135,136,137,138,139,140,141,142,143,144,145],[78,149],[146,148,150],[149],[147],[147,148,149,150]],"referencedMap":[[79,1],[80,1],[82,2],[83,3],[84,4],[85,5],[86,6],[87,7],[88,8],[89,9],[90,10],[91,11],[92,11],[94,12],[93,13],[95,12],[96,14],[97,15],[81,16],[131,17],[98,18],[99,19],[100,20],[132,21],[101,22],[102,23],[103,24],[104,25],[105,26],[106,27],[107,28],[108,29],[109,30],[110,31],[111,31],[112,32],[113,33],[115,34],[114,35],[116,36],[117,37],[118,17],[119,38],[120,39],[121,40],[122,41],[123,42],[124,43],[125,44],[126,45],[127,46],[128,47],[129,48],[130,49],[57,50],[56,50],[77,50],[59,51],[78,52],[58,53],[53,54],[55,17],[54,55],[68,50],[65,50],[63,50],[76,50],[51,56],[72,57],[74,50],[52,50],[73,50],[75,50],[49,53],[60,50],[64,50],[70,50],[71,57],[66,50],[67,50],[62,58],[69,50],[48,50],[50,50],[61,59],[47,17],[10,17],[9,17],[2,17],[11,17],[12,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[3,17],[4,17],[22,17],[19,17],[20,17],[21,17],[23,17],[24,17],[25,17],[5,17],[26,17],[27,17],[28,17],[29,17],[6,17],[33,17],[30,17],[31,17],[32,17],[34,17],[7,17],[35,17],[40,17],[41,17],[36,17],[37,17],[38,17],[39,17],[8,17],[45,17],[42,17],[43,17],[44,17],[1,17],[46,17],[150,60],[149,61],[147,62],[148,63],[151,64],[143,17],[140,65],[133,66],[136,17],[139,65],[145,17],[144,17],[137,67],[138,67],[134,67],[146,68],[141,17],[135,67],[142,17]],"exportedModulesMap":[[79,1],[80,1],[82,2],[83,3],[84,4],[85,5],[86,6],[87,7],[88,8],[89,9],[90,10],[91,11],[92,11],[94,12],[93,13],[95,12],[96,14],[97,15],[81,16],[131,17],[98,18],[99,19],[100,20],[132,21],[101,22],[102,23],[103,24],[104,25],[105,26],[106,27],[107,28],[108,29],[109,30],[110,31],[111,31],[112,32],[113,33],[115,34],[114,35],[116,36],[117,37],[118,17],[119,38],[120,39],[121,40],[122,41],[123,42],[124,43],[125,44],[126,45],[127,46],[128,47],[129,48],[130,49],[57,50],[56,50],[77,50],[59,51],[78,52],[58,53],[53,54],[55,17],[54,55],[68,50],[65,50],[63,50],[76,50],[51,56],[72,57],[74,50],[52,50],[73,50],[75,50],[49,53],[60,50],[64,50],[70,50],[71,57],[66,50],[67,50],[62,58],[69,50],[48,50],[50,50],[61,59],[47,17],[10,17],[9,17],[2,17],[11,17],[12,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[3,17],[4,17],[22,17],[19,17],[20,17],[21,17],[23,17],[24,17],[25,17],[5,17],[26,17],[27,17],[28,17],[29,17],[6,17],[33,17],[30,17],[31,17],[32,17],[34,17],[7,17],[35,17],[40,17],[41,17],[36,17],[37,17],[38,17],[39,17],[8,17],[45,17],[42,17],[43,17],[44,17],[1,17],[46,17],[150,69],[149,70],[147,71],[148,72],[151,73],[143,17],[140,65],[133,66],[136,17],[139,65],[145,17],[144,17],[137,67],[138,67],[134,67],[146,68],[141,17],[135,67],[142,17]],"semanticDiagnosticsPerFile":[79,80,82,83,84,85,86,87,88,89,90,91,92,94,93,95,96,97,81,131,98,99,100,132,101,102,103,104,105,106,107,108,109,110,111,112,113,115,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,57,56,77,59,78,58,53,55,54,68,65,63,76,51,72,74,52,73,75,49,60,64,70,71,66,67,62,69,48,50,61,47,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,8,45,42,43,44,1,46,150,149,147,148,151,143,140,133,136,139,145,144,137,138,134,146,141,135,142],"latestChangedDtsFile":"./types/index.d.ts"},"version":"4.9.3"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import * as r from "runtypes";
|
|
8
|
+
import { Context } from "./Context.js";
|
|
9
|
+
export declare const RuleEntry: r.Partial<{
|
|
10
|
+
options: r.Unknown;
|
|
11
|
+
excludePackages: r.Array<r.String, false>;
|
|
12
|
+
includePackages: r.Array<r.String, false>;
|
|
13
|
+
includeWorkspaceRoot: r.Boolean;
|
|
14
|
+
id: r.Optional<r.String>;
|
|
15
|
+
}, false>;
|
|
16
|
+
export interface RuleEntry<T = unknown> extends r.Static<typeof RuleEntry> {
|
|
17
|
+
options?: T;
|
|
18
|
+
}
|
|
19
|
+
export declare const RuleModule: r.Record<{
|
|
20
|
+
check: r.Function;
|
|
21
|
+
optionsRuntype: r.Unknown;
|
|
22
|
+
printStats: r.Optional<r.Function>;
|
|
23
|
+
}, false>;
|
|
24
|
+
export interface RuleModule<T extends r.Runtype = r.Runtype> extends r.Static<typeof RuleModule> {
|
|
25
|
+
check: Checker<T>;
|
|
26
|
+
optionsRuntype: T;
|
|
27
|
+
}
|
|
28
|
+
export interface NewRuleModule<T extends r.Runtype = r.Runtype> {
|
|
29
|
+
check: (context: Context) => Promise<unknown> | unknown;
|
|
30
|
+
name: string;
|
|
31
|
+
id: string;
|
|
32
|
+
optionsRuntype: T;
|
|
33
|
+
printStats?: () => void;
|
|
34
|
+
ruleEntry: RuleEntry<r.Static<T>>;
|
|
35
|
+
}
|
|
36
|
+
export declare const LegacyRules: r.Dictionary<r.Union<[r.Union<[r.Partial<{
|
|
37
|
+
options: r.Unknown;
|
|
38
|
+
excludePackages: r.Array<r.String, false>;
|
|
39
|
+
includePackages: r.Array<r.String, false>;
|
|
40
|
+
includeWorkspaceRoot: r.Boolean;
|
|
41
|
+
id: r.Optional<r.String>;
|
|
42
|
+
}, false>, r.Array<r.Partial<{
|
|
43
|
+
options: r.Unknown;
|
|
44
|
+
excludePackages: r.Array<r.String, false>;
|
|
45
|
+
includePackages: r.Array<r.String, false>;
|
|
46
|
+
includeWorkspaceRoot: r.Boolean;
|
|
47
|
+
id: r.Optional<r.String>;
|
|
48
|
+
}, false>, false>]>, r.Boolean]>, string | number | symbol>;
|
|
49
|
+
export type LegacyRules = r.Static<typeof LegacyRules>;
|
|
50
|
+
export declare const Config: r.Record<{
|
|
51
|
+
rules: r.Array<r.Unknown, false>;
|
|
52
|
+
legacyRules: r.Optional<r.Dictionary<r.Union<[r.Union<[r.Partial<{
|
|
53
|
+
options: r.Unknown;
|
|
54
|
+
excludePackages: r.Array<r.String, false>;
|
|
55
|
+
includePackages: r.Array<r.String, false>;
|
|
56
|
+
includeWorkspaceRoot: r.Boolean;
|
|
57
|
+
id: r.Optional<r.String>;
|
|
58
|
+
}, false>, r.Array<r.Partial<{
|
|
59
|
+
options: r.Unknown;
|
|
60
|
+
excludePackages: r.Array<r.String, false>;
|
|
61
|
+
includePackages: r.Array<r.String, false>;
|
|
62
|
+
includeWorkspaceRoot: r.Boolean;
|
|
63
|
+
id: r.Optional<r.String>;
|
|
64
|
+
}, false>, false>]>, r.Boolean]>, string | number | symbol>>;
|
|
65
|
+
}, false>;
|
|
66
|
+
export interface Config extends r.Static<typeof Config> {
|
|
67
|
+
rules: NewRuleModule[];
|
|
68
|
+
}
|
|
69
|
+
export declare const LegacyConfig: r.Record<{
|
|
70
|
+
rules: r.Optional<r.Dictionary<r.Union<[r.Union<[r.Partial<{
|
|
71
|
+
options: r.Unknown;
|
|
72
|
+
excludePackages: r.Array<r.String, false>;
|
|
73
|
+
includePackages: r.Array<r.String, false>;
|
|
74
|
+
includeWorkspaceRoot: r.Boolean;
|
|
75
|
+
id: r.Optional<r.String>;
|
|
76
|
+
}, false>, r.Array<r.Partial<{
|
|
77
|
+
options: r.Unknown;
|
|
78
|
+
excludePackages: r.Array<r.String, false>;
|
|
79
|
+
includePackages: r.Array<r.String, false>;
|
|
80
|
+
includeWorkspaceRoot: r.Boolean;
|
|
81
|
+
id: r.Optional<r.String>;
|
|
82
|
+
}, false>, false>]>, r.Boolean]>, string | number | symbol>>;
|
|
83
|
+
}, false>;
|
|
84
|
+
export interface LegacyConfig extends r.Static<typeof LegacyConfig> {
|
|
85
|
+
}
|
|
86
|
+
export interface Options {
|
|
87
|
+
readonly verbose?: boolean;
|
|
88
|
+
readonly fix?: boolean;
|
|
89
|
+
readonly paths?: ReadonlyArray<string>;
|
|
90
|
+
readonly silent?: boolean;
|
|
91
|
+
readonly stats?: boolean;
|
|
92
|
+
}
|
|
93
|
+
export type Checker<T extends r.Runtype> = ((context: Context, args: r.Static<T>, extra?: {
|
|
94
|
+
id: string;
|
|
95
|
+
}) => void) | ((context: Context, args: r.Static<T>, extra?: {
|
|
96
|
+
id: string;
|
|
97
|
+
}) => Promise<void>);
|
|
98
|
+
export interface ResolvedRule<T extends r.Runtype = r.Runtype> extends NewRuleModule<T> {
|
|
99
|
+
}
|
|
100
|
+
export interface ResolvedConfig extends Options {
|
|
101
|
+
readonly rules: ReadonlyArray<ResolvedRule>;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,eAAO,MAAM,SAAS;;;;;;SAMpB,CAAC;AACH,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,SAAS,CAAC;IACxE,OAAO,CAAC,EAAE,CAAC,CAAC;CACb;AAED,eAAO,MAAM,UAAU;;;;SAIrB,CAAC;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAE,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC;IAC9F,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAClB,cAAc,EAAE,CAAC,CAAC;CACnB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO;IAC5D,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;2DAA+D,CAAC;AACxF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;SAGjB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,MAAM,CAAC;IACrD,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;SAEvB,CAAC;AAEH,MAAM,WAAW,YAAa,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC;CAAG;AAEtE,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAGD,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,IACnC,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,CAAC,GACvE,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAErF,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;CAAG;AAE1F,MAAM,WAAW,cAAe,SAAQ,OAAO;IAC7C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { Host, PackageJson } from "@monorepolint/utils";
|
|
8
|
+
import { ResolvedConfig } from "./Config.js";
|
|
9
|
+
import { WorkspaceContext } from "./WorkspaceContext.js";
|
|
10
|
+
export interface Failure {
|
|
11
|
+
message: string;
|
|
12
|
+
file?: string;
|
|
13
|
+
longMessage?: string | null;
|
|
14
|
+
fixer?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface AddErrorOptions extends Failure {
|
|
17
|
+
file: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AddErrorAsyncOptions extends AddErrorOptions {
|
|
20
|
+
fixer?: () => Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
export interface AddErrorSyncOrAsyncOptions extends AddErrorOptions {
|
|
23
|
+
fixer?: AddErrorAsyncOptions["fixer"] | AddErrorOptions["fixer"];
|
|
24
|
+
}
|
|
25
|
+
export interface Context {
|
|
26
|
+
readonly depth: number;
|
|
27
|
+
readonly failed: boolean;
|
|
28
|
+
readonly packageDir: string;
|
|
29
|
+
readonly parent?: Context;
|
|
30
|
+
readonly resolvedConfig: ResolvedConfig;
|
|
31
|
+
readonly host: Host;
|
|
32
|
+
getName(): string;
|
|
33
|
+
getPackageJsonPath(): string;
|
|
34
|
+
getPackageJson(): PackageJson;
|
|
35
|
+
addWarning(opts: Failure): void;
|
|
36
|
+
addError(opts: AddErrorOptions): void;
|
|
37
|
+
addErrorAsync(opts: AddErrorAsyncOptions): Promise<void>;
|
|
38
|
+
isFailure(): boolean;
|
|
39
|
+
finish(): void;
|
|
40
|
+
setFailed(): void;
|
|
41
|
+
getWorkspaceContext(): WorkspaceContext;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/Context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,OAAO;IAC9C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,0BAA2B,SAAQ,eAAe;IACjE,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;CAClE;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IAEpB,OAAO,IAAI,MAAM,CAAC;IAElB,kBAAkB,IAAI,MAAM,CAAC;IAE7B,cAAc,IAAI,WAAW,CAAC;IAC9B,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CAAC;IACtC,aAAa,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD,SAAS,IAAI,OAAO,CAAC;IAErB,MAAM,IAAI,IAAI,CAAC;IAEf,SAAS,IAAI,IAAI,CAAC;IAElB,mBAAmB,IAAI,gBAAgB,CAAC;CACzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { Context } from "./Context.js";
|
|
8
|
+
export type PackageContext = Context;
|
|
9
|
+
//# sourceMappingURL=PackageContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackageContext.d.ts","sourceRoot":"","sources":["../../src/PackageContext.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { PackageContext } from "./PackageContext.js";
|
|
8
|
+
export interface WorkspaceContext extends PackageContext {
|
|
9
|
+
getWorkspacePackageDirs(): Promise<string[]>;
|
|
10
|
+
createChildContext(dir: string): PackageContext;
|
|
11
|
+
getPackageNameToDir(): Promise<Map<string, string>>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=WorkspaceContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceContext.d.ts","sourceRoot":"","sources":["../../src/WorkspaceContext.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,uBAAuB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7C,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC;IAChD,mBAAmB,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACrD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export { Config, LegacyRules, RuleEntry, Checker, LegacyConfig, Options, ResolvedConfig, ResolvedRule, RuleModule, NewRuleModule, } from "./Config.js";
|
|
8
|
+
export { PackageContext } from "./PackageContext.js";
|
|
9
|
+
export { WorkspaceContext } from "./WorkspaceContext.js";
|
|
10
|
+
export { AddErrorAsyncOptions, AddErrorOptions, AddErrorSyncOrAsyncOptions, Context, Failure } from "./Context.js";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,MAAM,EACN,WAAW,EACX,SAAS,EACT,OAAO,EACP,YAAY,EACZ,OAAO,EACP,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,0BAA0B,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/jest.config.cjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@monorepolint/config",
|
|
3
|
+
"version": "0.5.0-alpha.103+241c1b6",
|
|
4
|
+
"author": "Eric L Anderson (https://github.com/ericanderson)",
|
|
5
|
+
"contributors": [
|
|
6
|
+
"Mac Lockard (https://github.com/maclockard)"
|
|
7
|
+
],
|
|
8
|
+
"url": "https://github.com/monorepolint/monorepolint",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./build/types/index.d.ts",
|
|
14
|
+
"import": "./build/js/index.js",
|
|
15
|
+
"require": "./build/js/index.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"clean": "rm -rf build dist lib node_modules *.tgz tsconfig.tsbuildinfo",
|
|
20
|
+
"compile-typescript": "tsc --build",
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --colors --passWithNoTests",
|
|
23
|
+
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --colors --passWithNoTests --watch",
|
|
24
|
+
"transpile-typescript": "tsup --config ../../tsup.config.cjs"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@monorepolint/utils": "^0.5.0-alpha.103+241c1b6",
|
|
28
|
+
"camelcase": "^6.0.0",
|
|
29
|
+
"chalk": "^5.1.2",
|
|
30
|
+
"runtypes": "^6.6.0",
|
|
31
|
+
"tslib": "^2.3.1"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@jest/globals": "^29.3.1",
|
|
35
|
+
"@types/jest": "^29.2.4",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.45.1",
|
|
37
|
+
"@typescript-eslint/parser": "^5.45.1",
|
|
38
|
+
"eslint": "^8.29.0",
|
|
39
|
+
"jest": "^29.3.1",
|
|
40
|
+
"prettier": "^2.8.0",
|
|
41
|
+
"ts-jest": "^29.0.3",
|
|
42
|
+
"tslib": "^2.4.1",
|
|
43
|
+
"tsup": "^6.5.0",
|
|
44
|
+
"typescript": "^4.9.3"
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"gitHead": "241c1b6bcf55ee188dd2ee3f652de4c91e0817aa"
|
|
50
|
+
}
|
package/src/Config.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as r from "runtypes";
|
|
9
|
+
import { Context } from "./Context.js";
|
|
10
|
+
// TODO: extract all these types to their own files
|
|
11
|
+
|
|
12
|
+
export const RuleEntry = r.Partial({
|
|
13
|
+
options: r.Unknown,
|
|
14
|
+
excludePackages: r.Array(r.String),
|
|
15
|
+
includePackages: r.Array(r.String),
|
|
16
|
+
includeWorkspaceRoot: r.Boolean,
|
|
17
|
+
id: r.String.optional(),
|
|
18
|
+
});
|
|
19
|
+
export interface RuleEntry<T = unknown> extends r.Static<typeof RuleEntry> {
|
|
20
|
+
options?: T;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const RuleModule = r.Record({
|
|
24
|
+
check: r.Function,
|
|
25
|
+
optionsRuntype: r.Unknown,
|
|
26
|
+
printStats: r.Function.optional(),
|
|
27
|
+
});
|
|
28
|
+
export interface RuleModule<T extends r.Runtype = r.Runtype> extends r.Static<typeof RuleModule> {
|
|
29
|
+
check: Checker<T>;
|
|
30
|
+
optionsRuntype: T;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface NewRuleModule<T extends r.Runtype = r.Runtype> {
|
|
34
|
+
check: (context: Context) => Promise<unknown> | unknown;
|
|
35
|
+
name: string;
|
|
36
|
+
id: string;
|
|
37
|
+
optionsRuntype: T;
|
|
38
|
+
printStats?: () => void;
|
|
39
|
+
ruleEntry: RuleEntry<r.Static<T>>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const LegacyRules = r.Dictionary(RuleEntry.Or(r.Array(RuleEntry)).Or(r.Boolean));
|
|
43
|
+
export type LegacyRules = r.Static<typeof LegacyRules>;
|
|
44
|
+
|
|
45
|
+
export const Config = r.Record({
|
|
46
|
+
rules: r.Array(r.Unknown),
|
|
47
|
+
legacyRules: LegacyRules.optional(),
|
|
48
|
+
});
|
|
49
|
+
export interface Config extends r.Static<typeof Config> {
|
|
50
|
+
rules: NewRuleModule[];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const LegacyConfig = r.Record({
|
|
54
|
+
rules: LegacyRules.optional(),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export interface LegacyConfig extends r.Static<typeof LegacyConfig> {}
|
|
58
|
+
|
|
59
|
+
export interface Options {
|
|
60
|
+
readonly verbose?: boolean;
|
|
61
|
+
readonly fix?: boolean;
|
|
62
|
+
readonly paths?: ReadonlyArray<string>;
|
|
63
|
+
readonly silent?: boolean;
|
|
64
|
+
readonly stats?: boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// TODO: Make the extra param required. I'm not doing it now because this change is hard enough to read
|
|
68
|
+
export type Checker<T extends r.Runtype> =
|
|
69
|
+
| ((context: Context, args: r.Static<T>, extra?: { id: string }) => void)
|
|
70
|
+
| ((context: Context, args: r.Static<T>, extra?: { id: string }) => Promise<void>);
|
|
71
|
+
|
|
72
|
+
export interface ResolvedRule<T extends r.Runtype = r.Runtype> extends NewRuleModule<T> {}
|
|
73
|
+
|
|
74
|
+
export interface ResolvedConfig extends Options {
|
|
75
|
+
readonly rules: ReadonlyArray<ResolvedRule>;
|
|
76
|
+
}
|
package/src/Context.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { Host, PackageJson } from "@monorepolint/utils";
|
|
9
|
+
import { ResolvedConfig } from "./Config.js";
|
|
10
|
+
import { WorkspaceContext } from "./WorkspaceContext.js";
|
|
11
|
+
export interface Failure {
|
|
12
|
+
message: string;
|
|
13
|
+
file?: string;
|
|
14
|
+
longMessage?: string | null;
|
|
15
|
+
fixer?: () => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface AddErrorOptions extends Failure {
|
|
19
|
+
file: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface AddErrorAsyncOptions extends AddErrorOptions {
|
|
23
|
+
fixer?: () => Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface AddErrorSyncOrAsyncOptions extends AddErrorOptions {
|
|
27
|
+
fixer?: AddErrorAsyncOptions["fixer"] | AddErrorOptions["fixer"];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface Context {
|
|
31
|
+
readonly depth: number;
|
|
32
|
+
readonly failed: boolean;
|
|
33
|
+
readonly packageDir: string;
|
|
34
|
+
readonly parent?: Context;
|
|
35
|
+
readonly resolvedConfig: ResolvedConfig;
|
|
36
|
+
readonly host: Host;
|
|
37
|
+
|
|
38
|
+
getName(): string;
|
|
39
|
+
|
|
40
|
+
getPackageJsonPath(): string;
|
|
41
|
+
|
|
42
|
+
getPackageJson(): PackageJson;
|
|
43
|
+
addWarning(opts: Failure): void;
|
|
44
|
+
addError(opts: AddErrorOptions): void;
|
|
45
|
+
addErrorAsync(opts: AddErrorAsyncOptions): Promise<void>;
|
|
46
|
+
|
|
47
|
+
isFailure(): boolean;
|
|
48
|
+
|
|
49
|
+
finish(): void;
|
|
50
|
+
|
|
51
|
+
setFailed(): void;
|
|
52
|
+
|
|
53
|
+
getWorkspaceContext(): WorkspaceContext;
|
|
54
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { PackageContext } from "./PackageContext.js";
|
|
9
|
+
// Right now, this stuff is done serially so we are writing less code to support that. Later we may want to redo this.
|
|
10
|
+
export interface WorkspaceContext extends PackageContext {
|
|
11
|
+
getWorkspacePackageDirs(): Promise<string[]>;
|
|
12
|
+
createChildContext(dir: string): PackageContext;
|
|
13
|
+
getPackageNameToDir(): Promise<Map<string, string>>;
|
|
14
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
Config,
|
|
10
|
+
LegacyRules,
|
|
11
|
+
RuleEntry,
|
|
12
|
+
Checker,
|
|
13
|
+
LegacyConfig,
|
|
14
|
+
Options,
|
|
15
|
+
ResolvedConfig,
|
|
16
|
+
ResolvedRule,
|
|
17
|
+
RuleModule,
|
|
18
|
+
NewRuleModule,
|
|
19
|
+
} from "./Config.js";
|
|
20
|
+
export { PackageContext } from "./PackageContext.js";
|
|
21
|
+
export { WorkspaceContext } from "./WorkspaceContext.js";
|
|
22
|
+
export { AddErrorAsyncOptions, AddErrorOptions, AddErrorSyncOrAsyncOptions, Context, Failure } from "./Context.js";
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./build/js",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"declarationDir": "./build/types",
|
|
7
|
+
"tsBuildInfoFile": "./build/tsconfig.tsbuildinfo"
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"src"
|
|
11
|
+
],
|
|
12
|
+
"references": [
|
|
13
|
+
{
|
|
14
|
+
"path": "../utils"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|