@monorepolint/rules 0.5.0-beta.8 → 0.5.0-beta.9
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 +4 -0
- package/.turbo/turbo-test.log +667 -0
- package/.turbo/turbo-transpile-typescript.log +18 -0
- package/CHANGELOG.md +10 -0
- package/build/js/chunk-A2MUUSNE.js +26 -0
- package/build/js/chunk-A2MUUSNE.js.map +1 -0
- package/build/js/index.js +1403 -0
- package/build/js/index.js.map +1 -0
- package/build/js/public/util.js +7 -0
- package/build/js/public/util.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/types/__tests__/alphabeticalScripts.spec.d.ts +8 -0
- package/build/types/__tests__/alphabeticalScripts.spec.d.ts.map +1 -0
- package/build/types/__tests__/bannedDependencies.spec.d.ts +2 -0
- package/build/types/__tests__/bannedDependencies.spec.d.ts.map +1 -0
- package/build/types/__tests__/consistentDependencies.spec.d.ts +2 -0
- package/build/types/__tests__/consistentDependencies.spec.d.ts.map +1 -0
- package/build/types/__tests__/consistentVersions.spec.d.ts +8 -0
- package/build/types/__tests__/consistentVersions.spec.d.ts.map +1 -0
- package/build/types/__tests__/fileContents.spec.d.ts +8 -0
- package/build/types/__tests__/fileContents.spec.d.ts.map +1 -0
- package/build/types/__tests__/mustSatisfyPeerDependencies.spec.d.ts +8 -0
- package/build/types/__tests__/mustSatisfyPeerDependencies.spec.d.ts.map +1 -0
- package/build/types/__tests__/nestedWorkspaces.spec.d.ts +2 -0
- package/build/types/__tests__/nestedWorkspaces.spec.d.ts.map +1 -0
- package/build/types/__tests__/packageEntry.spec.d.ts +8 -0
- package/build/types/__tests__/packageEntry.spec.d.ts.map +1 -0
- package/build/types/__tests__/packageOrder.spec.d.ts +8 -0
- package/build/types/__tests__/packageOrder.spec.d.ts.map +1 -0
- package/build/types/__tests__/packageScript.spec.d.ts +8 -0
- package/build/types/__tests__/packageScript.spec.d.ts.map +1 -0
- package/build/types/__tests__/requireDependency.spec.d.ts +2 -0
- package/build/types/__tests__/requireDependency.spec.d.ts.map +1 -0
- package/build/types/__tests__/utils.d.ts +81 -0
- package/build/types/__tests__/utils.d.ts.map +1 -0
- package/build/types/alphabeticalDependencies.d.ts +8 -0
- package/build/types/alphabeticalDependencies.d.ts.map +1 -0
- package/build/types/alphabeticalScripts.d.ts +8 -0
- package/build/types/alphabeticalScripts.d.ts.map +1 -0
- package/build/types/bannedDependencies.d.ts +66 -0
- package/build/types/bannedDependencies.d.ts.map +1 -0
- package/build/types/consistentDependencies.d.ts +18 -0
- package/build/types/consistentDependencies.d.ts.map +1 -0
- package/build/types/consistentVersions.d.ts +25 -0
- package/build/types/consistentVersions.d.ts.map +1 -0
- package/build/types/fileContents.d.ts +39 -0
- package/build/types/fileContents.d.ts.map +1 -0
- package/build/types/index.d.ts +20 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/mustSatisfyPeerDependencies.d.ts +427 -0
- package/build/types/mustSatisfyPeerDependencies.d.ts.map +1 -0
- package/build/types/nestedWorkspaces.d.ts +10 -0
- package/build/types/nestedWorkspaces.d.ts.map +1 -0
- package/build/types/packageEntry.d.ts +62 -0
- package/build/types/packageEntry.d.ts.map +1 -0
- package/build/types/packageOrder.d.ts +12 -0
- package/build/types/packageOrder.d.ts.map +1 -0
- package/build/types/packageScript.d.ts +47 -0
- package/build/types/packageScript.d.ts.map +1 -0
- package/build/types/public/util.d.ts +2 -0
- package/build/types/public/util.d.ts.map +1 -0
- package/build/types/requireDependency.d.ts +50 -0
- package/build/types/requireDependency.d.ts.map +1 -0
- package/build/types/standardTsconfig.d.ts +29 -0
- package/build/types/standardTsconfig.d.ts.map +1 -0
- package/build/types/util/checkAlpha.d.ts +10 -0
- package/build/types/util/checkAlpha.d.ts.map +1 -0
- package/build/types/util/makeDirectory.d.ts +8 -0
- package/build/types/util/makeDirectory.d.ts.map +1 -0
- package/build/types/util/makeRule.d.ts +12 -0
- package/build/types/util/makeRule.d.ts.map +1 -0
- package/build/types/util/packageDependencyGraphService.d.ts +37 -0
- package/build/types/util/packageDependencyGraphService.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
> @monorepolint/rules@0.5.0-beta.9 transpile-typescript /home/runner/work/monorepolint/monorepolint/packages/rules
|
|
3
|
+
> tsup --config ../../tsup.config.cjs
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts, src/public/util.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.0.2
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/monorepolint/monorepolint/tsup.config.cjs
|
|
9
|
+
[34mCLI[39m Target: node16
|
|
10
|
+
[34mCLI[39m Cleaning output folder
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[32mESM[39m [1mbuild/js/public/util.js [22m[32m106.00 B[39m
|
|
13
|
+
[32mESM[39m [1mbuild/js/index.js [22m[32m50.16 KB[39m
|
|
14
|
+
[32mESM[39m [1mbuild/js/chunk-A2MUUSNE.js [22m[32m512.00 B[39m
|
|
15
|
+
[32mESM[39m [1mbuild/js/public/util.js.map [22m[32m71.00 B[39m
|
|
16
|
+
[32mESM[39m [1mbuild/js/index.js.map [22m[32m100.22 KB[39m
|
|
17
|
+
[32mESM[39m [1mbuild/js/chunk-A2MUUSNE.js.map [22m[32m1.19 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 82ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @monorepolint/rules
|
|
2
2
|
|
|
3
|
+
## 0.5.0-beta.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Interal changes
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @monorepolint/config@0.5.0-beta.9
|
|
10
|
+
- @monorepolint/core@0.5.0-beta.9
|
|
11
|
+
- @monorepolint/utils@0.5.0-beta.9
|
|
12
|
+
|
|
3
13
|
## 0.5.0-beta.8
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/util/makeRule.ts
|
|
2
|
+
var globalId = 0;
|
|
3
|
+
function makeRule({
|
|
4
|
+
name,
|
|
5
|
+
check,
|
|
6
|
+
validateOptions,
|
|
7
|
+
printStats
|
|
8
|
+
}) {
|
|
9
|
+
return function(ruleEntry) {
|
|
10
|
+
const id = `${name} :: ${globalId++}`;
|
|
11
|
+
return {
|
|
12
|
+
id,
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-extra-non-null-assertion
|
|
14
|
+
check: (context) => check(context, ruleEntry.options, { id }),
|
|
15
|
+
name,
|
|
16
|
+
validateOptions,
|
|
17
|
+
ruleEntry,
|
|
18
|
+
printStats
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
makeRule
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=chunk-A2MUUSNE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/util/makeRule.ts"],"sourcesContent":["import { Context, RuleEntry, RuleModule } from \"@monorepolint/config\";\n\nlet globalId = 0;\nexport function makeRule<X>({\n name,\n check,\n validateOptions,\n printStats,\n}: {\n name: string;\n check: (context: Context, options: X, extra: { id: string }) => Promise<unknown> | unknown;\n printStats?: () => void;\n validateOptions: (options: unknown) => asserts options is X;\n}): RuleFunction<X> {\n return function (ruleEntry) {\n const id = `${name} :: ${globalId++}`;\n return {\n id,\n // eslint-disable-next-line @typescript-eslint/no-extra-non-null-assertion\n check: (context) => check(context, ruleEntry.options!!, { id }),\n name,\n validateOptions,\n ruleEntry,\n printStats,\n };\n };\n}\n\ntype RuleFunction<T> = (ruleEntry: RuleEntry<T>) => RuleModule<T>;\n"],"mappings":";AAEA,IAAI,WAAW;AACR,SAAS,SAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAKoB;AAClB,SAAO,SAAU,WAAW;AAC1B,UAAM,KAAK,GAAG,IAAI,OAAO,UAAU;AACnC,WAAO;AAAA,MACL;AAAA;AAAA,MAEA,OAAO,CAAC,YAAY,MAAM,SAAS,UAAU,SAAW,EAAE,GAAG,CAAC;AAAA,MAC9D;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|