limina 0.0.1 → 0.0.2
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/LICENSE.md +21 -0
- package/README.md +384 -0
- package/bin/limina.js +0 -0
- package/chunks/{dep-DoSHsBSP.js → dep-uPXyoC0V.js} +654 -206
- package/cli.js +225 -150
- package/config.d.ts +7 -41
- package/index.d.ts +20 -2
- package/index.js +2 -2
- package/package.json +14 -2
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinCheckerPreset, BuiltinTaskName, CheckerConfig, CheckerExecutionKind, CheckerPreset, GraphConfig, GraphRule, GraphRuleDenyConfig, GraphRuleDepDenyEntry,
|
|
1
|
+
import { BuiltinCheckerPreset, BuiltinTaskName, CheckerConfig, CheckerExecutionKind, CheckerPreset, GraphConfig, GraphRule, GraphRuleDenyConfig, GraphRuleDepDenyEntry, GraphRuleRefDenyEntry, LiminaCommand, LiminaConfig, LiminaConfigEnv, LiminaConfigExport, LiminaConfigFn, LiminaConfigFnObject, LiminaConfigFnPromise, LoadConfigOptions, PackageAttwCheckConfig, PackageAttwProfile, PackageBoundaryCheckConfig, PackageCheckTarget, PackageCheckTool, PackageCheckToolSelection, PackageChecksConfig, PackagePublintCheckConfig, PathsConfig, PipelineStep, ProofAllowlistEntry, ProofConfig, ResolvedCheckerConfig, ResolvedLiminaConfig, RuntimeEnvironment, SharedLiminaConfig, SourceBoundaryConfig, defineConfig, getActiveCheckerExtensions, getActiveCheckers, loadConfig, validateLiminaConfig } from "./config.js";
|
|
2
2
|
//#region src/flow.d.ts
|
|
3
3
|
interface ClackLogAdapter {
|
|
4
4
|
error: (message: string) => void;
|
|
@@ -62,6 +62,24 @@ declare class LiminaFlowReporter {
|
|
|
62
62
|
}
|
|
63
63
|
declare function createLiminaFlowReporter(options?: LiminaFlowReporterOptions): LiminaFlowReporter;
|
|
64
64
|
//#endregion
|
|
65
|
+
//#region src/commands/init.d.ts
|
|
66
|
+
interface RunInitOptions {
|
|
67
|
+
clearScreen?: boolean;
|
|
68
|
+
cwd?: string;
|
|
69
|
+
flow?: LiminaFlowReporter;
|
|
70
|
+
flowDepth?: number;
|
|
71
|
+
yes?: boolean;
|
|
72
|
+
}
|
|
73
|
+
interface RunInitResult {
|
|
74
|
+
checkCommand: string;
|
|
75
|
+
installRequired: boolean;
|
|
76
|
+
rootDir: string;
|
|
77
|
+
skippedFiles: string[];
|
|
78
|
+
workspacePackageCount: number;
|
|
79
|
+
writtenFiles: string[];
|
|
80
|
+
}
|
|
81
|
+
declare function runInit(options?: RunInitOptions): Promise<RunInitResult>;
|
|
82
|
+
//#endregion
|
|
65
83
|
//#region src/commands/source.d.ts
|
|
66
84
|
interface RunSourceCheckOptions {
|
|
67
85
|
clearScreen?: boolean;
|
|
@@ -141,4 +159,4 @@ interface CollectTypecheckTargetProjectPathsResult {
|
|
|
141
159
|
declare function isOrdinaryTypecheckConfigPath(configPath: string): boolean;
|
|
142
160
|
declare function collectTypecheckTargetProjectPaths(options: CollectTypecheckTargetProjectPathsOptions): CollectTypecheckTargetProjectPathsResult;
|
|
143
161
|
//#endregion
|
|
144
|
-
export { type BuiltinCheckerPreset, type BuiltinTaskName, type CheckerConfig, type CheckerExecutionKind, type CheckerPreset, type CollectTypecheckTargetProjectPathsOptions, type CollectTypecheckTargetProjectPathsResult, type GraphConfig, type GraphRule, type GraphRuleDenyConfig, type GraphRuleDepDenyEntry, type
|
|
162
|
+
export { type BuiltinCheckerPreset, type BuiltinTaskName, type CheckerConfig, type CheckerExecutionKind, type CheckerPreset, type CollectTypecheckTargetProjectPathsOptions, type CollectTypecheckTargetProjectPathsResult, type GraphConfig, type GraphRule, type GraphRuleDenyConfig, type GraphRuleDepDenyEntry, type GraphRuleRefDenyEntry, type LiminaCommand, type LiminaConfig, type LiminaConfigEnv, type LiminaConfigExport, type LiminaConfigFn, type LiminaConfigFnObject, type LiminaConfigFnPromise, type LiminaFlowFailureOptions, type LiminaFlowMessageOptions, type LiminaFlowOutputOptions, LiminaFlowReporter, type LiminaFlowReporterOptions, type LiminaFlowTask, type LoadConfigOptions, type PackageAttwCheckConfig, type PackageAttwProfile, type PackageBoundaryCheckConfig, type PackageCheckTarget, type PackageCheckTool, type PackageCheckToolSelection, type PackageChecksConfig, type PackagePublintCheckConfig, type PathsConfig, type PipelineStep, type ProofAllowlistEntry, type ProofConfig, type ResolvedCheckerConfig, type ResolvedLiminaConfig, type RunCheckerBuildOptions, type RunCheckerBuildResult, type RunCheckerTypecheckOptions, type RunCheckerTypecheckResult, type RunInitOptions, type RunInitResult, type RunSourceCheckOptions, type RuntimeEnvironment, type SharedLiminaConfig, type SourceBoundaryConfig, type TypecheckRunner, type TypecheckTarget, type TypecheckTargetResult, collectTypecheckTargetProjectPaths, createLiminaFlowReporter, defineConfig, getActiveCheckerExtensions, getActiveCheckers, isOrdinaryTypecheckConfigPath, loadConfig, runCheckerBuild, runCheckerTypecheck, runInit, runSourceCheck, validateLiminaConfig };
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chunks/dep-lkQg1P9Q.js";
|
|
2
2
|
import { a as validateLiminaConfig, i as loadConfig, n as getActiveCheckerExtensions, r as getActiveCheckers, t as defineConfig } from "./chunks/dep-jgc7X0zw.js";
|
|
3
|
-
import {
|
|
3
|
+
import { K as isOrdinaryTypecheckConfigPath, a as runSourceCheck, i as runCheckerTypecheck, n as createLiminaFlowReporter, o as runInit, r as runCheckerBuild, t as LiminaFlowReporter, z as collectTypecheckTargetProjectPaths } from "./chunks/dep-uPXyoC0V.js";
|
|
4
4
|
|
|
5
|
-
export { LiminaFlowReporter, collectTypecheckTargetProjectPaths, createLiminaFlowReporter, defineConfig, getActiveCheckerExtensions, getActiveCheckers, isOrdinaryTypecheckConfigPath, loadConfig, runCheckerBuild, runCheckerTypecheck, runSourceCheck, validateLiminaConfig };
|
|
5
|
+
export { LiminaFlowReporter, collectTypecheckTargetProjectPaths, createLiminaFlowReporter, defineConfig, getActiveCheckerExtensions, getActiveCheckers, isOrdinaryTypecheckConfigPath, loadConfig, runCheckerBuild, runCheckerTypecheck, runInit, runSourceCheck, validateLiminaConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "limina",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Senao Xi",
|
|
@@ -15,13 +15,25 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": "^20.19.0 || >=22.12.0"
|
|
17
17
|
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/XiSenao/docs-islands.git",
|
|
21
|
+
"directory": "packages/limina"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/XiSenao/docs-islands/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://docs.senao.me/docs-islands",
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
18
30
|
"bin": {
|
|
19
31
|
"limina": "./bin/limina.js"
|
|
20
32
|
},
|
|
21
33
|
"dependencies": {
|
|
22
34
|
"@arethetypeswrong/core": "^0.18.2",
|
|
23
35
|
"@clack/prompts": "^1.4.0",
|
|
24
|
-
"
|
|
36
|
+
"logaria": "^0.0.1",
|
|
25
37
|
"@publint/pack": "^0.1.4",
|
|
26
38
|
"cac": "^6.7.14",
|
|
27
39
|
"es-module-lexer": "^2.0.0",
|