@stillwind/config 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +11 -2
- package/dist/browser.d.ts +50 -0
- package/dist/browser.js +65 -0
- package/dist/browser.js.map +1 -0
- package/dist/index.d.ts +208 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/node.d.ts +102 -0
- package/dist/node.js +227 -0
- package/dist/node.js.map +1 -0
- package/dist/resolution-BK-NUhyh.js +1351 -0
- package/dist/resolution-BK-NUhyh.js.map +1 -0
- package/dist/resolution-BnR6LLM-.d.ts +1210 -0
- package/package.json +57 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Stillwind contributors
|
|
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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @stillwind/config
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Stillwind compiles Tailwind CSS v4 utilities into component props and static CSS.
|
|
4
|
+
It uses theme rules and compiler checks to keep styling code in order, even when
|
|
5
|
+
AI agents write much of it.
|
|
6
|
+
|
|
7
|
+
`@stillwind/config` provides shared project configuration, lint presets, plugin
|
|
8
|
+
contracts, and configuration loading for Stillwind builds and analysis.
|
|
9
|
+
Applications use the helpers through `stillwind/config`.
|
|
10
|
+
|
|
11
|
+
See [Configuration](https://stillwind.dev/docs/configuration)
|
|
12
|
+
for settings and resolution rules.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { i as AnalysisProjectConfig, t as InlineConfig } from "./resolution-BnR6LLM-.js";
|
|
2
|
+
/** Configuration evaluation supplied by a browser module runtime. */
|
|
3
|
+
export interface BrowserConfigHost {
|
|
4
|
+
/**
|
|
5
|
+
* Tests whether a configuration candidate exists in the captured workspace.
|
|
6
|
+
* @param id - Absolute virtual path supplied by discovery or an explicit file selection.
|
|
7
|
+
* @returns Whether the evaluator can load this path from the captured inventory.
|
|
8
|
+
*/
|
|
9
|
+
exists(id: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Evaluates a configuration module without invoking its exported factory.
|
|
12
|
+
* @param id - Existing absolute virtual path selected from the same captured inventory.
|
|
13
|
+
* @returns The module's default export, which resolveConfig subsequently evaluates and validates.
|
|
14
|
+
* @throws If loading or evaluating the module fails.
|
|
15
|
+
*/
|
|
16
|
+
evaluate(id: string): Promise<unknown>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Discovers and evaluates browser configuration using the same export contract as Node.
|
|
20
|
+
* @param root - Absolute virtual application directory.
|
|
21
|
+
* @param host - Captured file inventory and browser module evaluator.
|
|
22
|
+
* @param inline - Explicit file, project selection, and compiler overrides.
|
|
23
|
+
* @returns The selected project, configuration identity, and every evaluated project.
|
|
24
|
+
* @throws If an explicit file is missing, evaluation or validation fails, project selection is
|
|
25
|
+
* unsuccessful or ambiguous, or the effective settings lack a nonempty CSS path.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveBrowserConfig(root: string, host: BrowserConfigHost, inline?: InlineConfig): Promise<{
|
|
28
|
+
/** Selected project with merged overrides, compiler defaults, and absolute paths. */
|
|
29
|
+
config: AnalysisProjectConfig;
|
|
30
|
+
/** Absolute virtual configuration path, or undefined when no file was loaded. */
|
|
31
|
+
configFile?: string;
|
|
32
|
+
/** Projects in authored order, with the selected entry replaced by config. Inline-only settings return one project. */
|
|
33
|
+
projects: AnalysisProjectConfig[];
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* Loads every configured project for analysis across a workspace.
|
|
37
|
+
* @param root - Absolute virtual directory where discovery starts.
|
|
38
|
+
* @param host - Captured files and module evaluator.
|
|
39
|
+
* @param requested - Absolute path or nonempty path relative to root. False disables loading, and
|
|
40
|
+
* omission searches root and its ancestors in configurationFiles order within each directory.
|
|
41
|
+
* @returns Evaluated projects with absolute roots, or undefined when loading is disabled or discovery finds no file.
|
|
42
|
+
* @throws If an explicit path is invalid or missing, or evaluation or validation fails.
|
|
43
|
+
*/
|
|
44
|
+
export declare function loadBrowserConfig(root: string, host: BrowserConfigHost, requested?: string | false): Promise<{
|
|
45
|
+
/** Absolute virtual path selected for evaluation. */
|
|
46
|
+
configFile: string;
|
|
47
|
+
/** Validated projects in authored order with root, CSS, and string tsconfig paths resolved. */
|
|
48
|
+
projects: AnalysisProjectConfig[];
|
|
49
|
+
} | undefined>;
|
|
50
|
+
//# sourceMappingURL=browser.d.ts.map
|
package/dist/browser.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { a as resolveProjectPaths, d as resolveConfig, i as resolveCompilerSettings, n as configurationCandidates, o as selectProject, s as validateInlineConfig, t as compilerConfig } from "./resolution-BK-NUhyh.js";
|
|
2
|
+
import * as paths from "pathe";
|
|
3
|
+
import { dirname, resolve } from "pathe";
|
|
4
|
+
// src/browser.ts
|
|
5
|
+
/** Evaluates and selects configuration from virtual paths through an embedding's captured files and module runtime. */
|
|
6
|
+
/**
|
|
7
|
+
* Discovers and evaluates browser configuration using the same export contract as Node.
|
|
8
|
+
* @param root - Absolute virtual application directory.
|
|
9
|
+
* @param host - Captured file inventory and browser module evaluator.
|
|
10
|
+
* @param inline - Explicit file, project selection, and compiler overrides.
|
|
11
|
+
* @returns The selected project, configuration identity, and every evaluated project.
|
|
12
|
+
* @throws If an explicit file is missing, evaluation or validation fails, project selection is
|
|
13
|
+
* unsuccessful or ambiguous, or the effective settings lack a nonempty CSS path.
|
|
14
|
+
*/
|
|
15
|
+
async function resolveBrowserConfig(root, host, inline = {}) {
|
|
16
|
+
root = resolve(root);
|
|
17
|
+
validateInlineConfig(inline);
|
|
18
|
+
const loaded = await loadBrowserConfig(root, host, inline.configFile);
|
|
19
|
+
const file = loaded?.configFile;
|
|
20
|
+
const projects = loaded?.projects ?? [];
|
|
21
|
+
if (!file && inline.project !== void 0) throw new Error("Cannot select a Stillwind project without a configuration file");
|
|
22
|
+
const selected = file ? selectProject(projects, root, inline, paths) : void 0;
|
|
23
|
+
const settings = resolveCompilerSettings(selected ? compilerConfig(selected) : {
|
|
24
|
+
root,
|
|
25
|
+
lint: inline.lint
|
|
26
|
+
}, inline, root, paths);
|
|
27
|
+
const config = {
|
|
28
|
+
...selected,
|
|
29
|
+
files: selected?.files ?? ["**/*"],
|
|
30
|
+
...settings
|
|
31
|
+
};
|
|
32
|
+
return {
|
|
33
|
+
config,
|
|
34
|
+
configFile: file,
|
|
35
|
+
projects: projects.length ? projects.map((project) => project === selected ? config : project) : [config]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Loads every configured project for analysis across a workspace.
|
|
40
|
+
* @param root - Absolute virtual directory where discovery starts.
|
|
41
|
+
* @param host - Captured files and module evaluator.
|
|
42
|
+
* @param requested - Absolute path or nonempty path relative to root. False disables loading, and
|
|
43
|
+
* omission searches root and its ancestors in configurationFiles order within each directory.
|
|
44
|
+
* @returns Evaluated projects with absolute roots, or undefined when loading is disabled or discovery finds no file.
|
|
45
|
+
* @throws If an explicit path is invalid or missing, or evaluation or validation fails.
|
|
46
|
+
*/
|
|
47
|
+
async function loadBrowserConfig(root, host, requested) {
|
|
48
|
+
if (requested === false) return;
|
|
49
|
+
if (requested !== void 0 && (typeof requested !== "string" || !requested.trim())) throw new Error("Stillwind configFile must be a path or false");
|
|
50
|
+
root = resolve(root);
|
|
51
|
+
let file;
|
|
52
|
+
if (requested) {
|
|
53
|
+
file = resolve(root, requested);
|
|
54
|
+
if (!host.exists(file)) throw new Error(`Cannot find Stillwind configuration: ${file}`);
|
|
55
|
+
} else file = configurationCandidates(root, paths).find((candidate) => host.exists(candidate));
|
|
56
|
+
if (!file) return;
|
|
57
|
+
const config = await resolveConfig(await host.evaluate(file));
|
|
58
|
+
return {
|
|
59
|
+
configFile: file,
|
|
60
|
+
projects: config.projects.map((project) => resolveProjectPaths(project, dirname(file), paths))
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export { loadBrowserConfig, resolveBrowserConfig };
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","names":[],"sources":["../src/browser.ts"],"sourcesContent":["/** Evaluates and selects configuration from virtual paths through an embedding's captured files and module runtime. */\n\nimport * as paths from \"pathe\";\nimport { dirname, resolve } from \"pathe\";\n\nimport { resolveConfig, type AnalysisProjectConfig } from \"./configuration.ts\";\nimport {\n compilerConfig,\n configurationCandidates,\n resolveCompilerSettings,\n resolveProjectPaths,\n selectProject,\n validateInlineConfig,\n type InlineConfig,\n} from \"./resolution.ts\";\n\n/** Configuration evaluation supplied by a browser module runtime. */\nexport interface BrowserConfigHost {\n /**\n * Tests whether a configuration candidate exists in the captured workspace.\n * @param id - Absolute virtual path supplied by discovery or an explicit file selection.\n * @returns Whether the evaluator can load this path from the captured inventory.\n */\n exists(id: string): boolean;\n /**\n * Evaluates a configuration module without invoking its exported factory.\n * @param id - Existing absolute virtual path selected from the same captured inventory.\n * @returns The module's default export, which resolveConfig subsequently evaluates and validates.\n * @throws If loading or evaluating the module fails.\n */\n evaluate(id: string): Promise<unknown>;\n}\n\n/**\n * Discovers and evaluates browser configuration using the same export contract as Node.\n * @param root - Absolute virtual application directory.\n * @param host - Captured file inventory and browser module evaluator.\n * @param inline - Explicit file, project selection, and compiler overrides.\n * @returns The selected project, configuration identity, and every evaluated project.\n * @throws If an explicit file is missing, evaluation or validation fails, project selection is\n * unsuccessful or ambiguous, or the effective settings lack a nonempty CSS path.\n */\nexport async function resolveBrowserConfig(\n root: string,\n host: BrowserConfigHost,\n inline: InlineConfig = {},\n): Promise<{\n /** Selected project with merged overrides, compiler defaults, and absolute paths. */\n config: AnalysisProjectConfig;\n /** Absolute virtual configuration path, or undefined when no file was loaded. */\n configFile?: string;\n /** Projects in authored order, with the selected entry replaced by config. Inline-only settings return one project. */\n projects: AnalysisProjectConfig[];\n}> {\n root = resolve(root);\n\n validateInlineConfig(inline);\n\n const loaded = await loadBrowserConfig(root, host, inline.configFile);\n const file = loaded?.configFile;\n const projects = loaded?.projects ?? [];\n if (!file && inline.project !== undefined) {\n throw new Error(\"Cannot select a Stillwind project without a configuration file\");\n }\n\n const selected = file\n ? selectProject(\n projects as (AnalysisProjectConfig & {\n /** Absolute virtual root resolved from the configuration directory. */\n root: string;\n })[],\n root,\n inline,\n paths,\n )\n : undefined;\n const settings = resolveCompilerSettings(\n selected\n ? compilerConfig(selected)\n : {\n root,\n lint: inline.lint,\n },\n inline,\n root,\n paths,\n );\n const config: AnalysisProjectConfig = {\n ...selected,\n files: selected?.files ?? [\"**/*\"],\n ...settings,\n };\n\n return {\n config,\n configFile: file,\n projects: projects.length\n ? projects.map((project) => (project === selected ? config : project))\n : [config],\n };\n}\n\n/**\n * Loads every configured project for analysis across a workspace.\n * @param root - Absolute virtual directory where discovery starts.\n * @param host - Captured files and module evaluator.\n * @param requested - Absolute path or nonempty path relative to root. False disables loading, and\n * omission searches root and its ancestors in configurationFiles order within each directory.\n * @returns Evaluated projects with absolute roots, or undefined when loading is disabled or discovery finds no file.\n * @throws If an explicit path is invalid or missing, or evaluation or validation fails.\n */\nexport async function loadBrowserConfig(\n root: string,\n host: BrowserConfigHost,\n requested?: string | false,\n): Promise<\n | {\n /** Absolute virtual path selected for evaluation. */\n configFile: string;\n /** Validated projects in authored order with root, CSS, and string tsconfig paths resolved. */\n projects: AnalysisProjectConfig[];\n }\n | undefined\n> {\n if (requested === false) {\n return undefined;\n }\n if (requested !== undefined && (typeof requested !== \"string\" || !requested.trim())) {\n throw new Error(\"Stillwind configFile must be a path or false\");\n }\n\n root = resolve(root);\n\n let file: string | undefined;\n if (requested) {\n file = resolve(root, requested);\n if (!host.exists(file)) {\n throw new Error(`Cannot find Stillwind configuration: ${file}`);\n }\n } else {\n file = configurationCandidates(root, paths).find((candidate) => host.exists(candidate));\n }\n if (!file) {\n return undefined;\n }\n\n const config = await resolveConfig(await host.evaluate(file));\n return {\n configFile: file,\n projects: config.projects.map((project) => resolveProjectPaths(project, dirname(file!), paths)),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AA0CA,eAAsB,qBACpB,MACA,MACA,SAAuB,CAAC,GAQvB;CACD,OAAO,QAAQ,IAAI;CAEnB,qBAAqB,MAAM;CAE3B,MAAM,SAAS,MAAM,kBAAkB,MAAM,MAAM,OAAO,UAAU;CACpE,MAAM,OAAO,QAAQ;CACrB,MAAM,WAAW,QAAQ,YAAY,CAAC;CACtC,IAAI,CAAC,QAAQ,OAAO,YAAY,KAAA,GAC9B,MAAM,IAAI,MAAM,gEAAgE;CAGlF,MAAM,WAAW,OACb,cACE,UAIA,MACA,QACA,KACF,IACA,KAAA;CACJ,MAAM,WAAW,wBACf,WACI,eAAe,QAAQ,IACvB;EACE;EACA,MAAM,OAAO;CACf,GACJ,QACA,MACA,KACF;CACA,MAAM,SAAgC;EACpC,GAAG;EACH,OAAO,UAAU,SAAS,CAAC,MAAM;EACjC,GAAG;CACL;CAEA,OAAO;EACL;EACA,YAAY;EACZ,UAAU,SAAS,SACf,SAAS,KAAK,YAAa,YAAY,WAAW,SAAS,OAAQ,IACnE,CAAC,MAAM;CACb;AACF;;;;;;;;;;AAWA,eAAsB,kBACpB,MACA,MACA,WASA;CACA,IAAI,cAAc,OAChB;CAEF,IAAI,cAAc,KAAA,MAAc,OAAO,cAAc,YAAY,CAAC,UAAU,KAAK,IAC/E,MAAM,IAAI,MAAM,8CAA8C;CAGhE,OAAO,QAAQ,IAAI;CAEnB,IAAI;CACJ,IAAI,WAAW;EACb,OAAO,QAAQ,MAAM,SAAS;EAC9B,IAAI,CAAC,KAAK,OAAO,IAAI,GACnB,MAAM,IAAI,MAAM,wCAAwC,MAAM;CAElE,OACE,OAAO,wBAAwB,MAAM,KAAK,CAAC,CAAC,MAAM,cAAc,KAAK,OAAO,SAAS,CAAC;CAExF,IAAI,CAAC,MACH;CAGF,MAAM,SAAS,MAAM,cAAc,MAAM,KAAK,SAAS,IAAI,CAAC;CAC5D,OAAO;EACL,YAAY;EACZ,UAAU,OAAO,SAAS,KAAK,YAAY,oBAAoB,SAAS,QAAQ,IAAK,GAAG,KAAK,CAAC;CAChG;AACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { A as ArbitrarySpacingOptions, B as LintSeverity, C as normalizeCompilerConfig, D as PluginWatchKind, E as PluginDirectoryEntry, F as LengthUnitsOptions, G as RestrictedThemeTokensOptions, H as MarkerUseOptions, I as LintConfig, J as mergeLintConfig, K as RestrictedUtilitiesOptions, L as LintPreset, M as ConflictingUtilitiesOptions, N as DefinitionScope, O as StillwindPlugin, P as ImportantOptions, Q as lintRules, R as LintRules, S as UtilitySortOptions, T as PluginContext, U as ResolvedLintRules, V as LogicalPropertiesOptions, W as RestrictedDeclarationsOptions, X as LintCategory, Y as resolveLintConfig, Z as LintRule, _ as BaseConfig, a as CapturedProjectConfig, b as NormalizedCompilerConfig, c as SourceProvider, d as StillwindConfigExport, f as StillwindConfigFactory, g as validateConfig, h as resolveConfig, i as AnalysisProjectConfig, j as CanonicalUtilitiesOptions, k as definePlugin, l as SourceProviderContext, m as defineConfig, n as SerializableInlineConfig, o as PreviewOptions, p as captureProjectConfig, q as VariantDirectiveOptions, r as configurationFiles, s as ProjectionProvider, t as InlineConfig, u as StillwindConfig, v as BuildConfig, w as validateCompilerConfig, x as TailwindConfig, y as BuildOptions, z as LintScope } from "./resolution-BnR6LLM-.js";
|
|
2
|
+
/**
|
|
3
|
+
* Built-in lint policies for ordered preset composition. Treat their shared objects as readonly.
|
|
4
|
+
* Recommended supplies the omitted-lint default. Strict denies every recommended rule and adds
|
|
5
|
+
* further denied checks. Stylistic enables optional rewrites and utility sorting.
|
|
6
|
+
*/
|
|
7
|
+
export declare const lintPresets: {
|
|
8
|
+
readonly recommended: {
|
|
9
|
+
readonly name: "stillwind/recommended";
|
|
10
|
+
readonly rules: {
|
|
11
|
+
readonly "invalid-lint-suppression": "warn";
|
|
12
|
+
readonly "duplicate-utility": "warn";
|
|
13
|
+
readonly "conflicting-utilities": "warn";
|
|
14
|
+
readonly "mismatched-framework-import": "warn";
|
|
15
|
+
readonly "mutating-macro-argument": "deny";
|
|
16
|
+
readonly "suspending-macro-argument": "deny";
|
|
17
|
+
readonly "invalid-rule-group-input": "deny";
|
|
18
|
+
readonly "invalid-style-input": "deny";
|
|
19
|
+
readonly "invalid-cva-config": "deny";
|
|
20
|
+
readonly "invalid-cva-input": "deny";
|
|
21
|
+
readonly "invalid-keyframes-use": "deny";
|
|
22
|
+
readonly "invalid-keyframes-definition": "deny";
|
|
23
|
+
readonly "invalid-keyframes-variant": "deny";
|
|
24
|
+
readonly "invalid-view-transition-use": "deny";
|
|
25
|
+
readonly "invalid-view-transition-definition": "deny";
|
|
26
|
+
readonly "invalid-view-transition-variant": "deny";
|
|
27
|
+
readonly "invalid-media-query": "deny";
|
|
28
|
+
readonly "invalid-css-input": "deny";
|
|
29
|
+
readonly "invalid-ref-input": "deny";
|
|
30
|
+
readonly "invalid-animation-option": "deny";
|
|
31
|
+
readonly "invalid-style-composition": "deny";
|
|
32
|
+
readonly "runtime-condition-requires-css-if": "deny";
|
|
33
|
+
readonly "unverified-style-base": "warn";
|
|
34
|
+
readonly "ineffective-anchor-scope": "warn";
|
|
35
|
+
readonly "missing-ref-attachment": "warn";
|
|
36
|
+
readonly "conflicting-provider-properties": "warn";
|
|
37
|
+
readonly "document-scoped-selector": "deny";
|
|
38
|
+
readonly "repeated-nesting-selector": "warn";
|
|
39
|
+
readonly "missing-view-transition-name": "warn";
|
|
40
|
+
readonly "duplicate-view-transition-name": "warn";
|
|
41
|
+
readonly "split-view-transition-class": "warn";
|
|
42
|
+
readonly "ambiguous-style-base-order": "warn";
|
|
43
|
+
readonly "interfering-imported-style-base": "warn";
|
|
44
|
+
readonly "incompatible-property-value": "deny";
|
|
45
|
+
readonly "invalid-utility": "deny";
|
|
46
|
+
readonly "unknown-utility": "warn";
|
|
47
|
+
readonly "invalid-marker-use": "warn";
|
|
48
|
+
readonly "invalid-variant": "deny";
|
|
49
|
+
readonly "unknown-variant": "warn";
|
|
50
|
+
readonly "missing-document-target": "deny";
|
|
51
|
+
readonly "prefer-canonical-utilities": "warn";
|
|
52
|
+
readonly "redundant-variant": "warn";
|
|
53
|
+
readonly "unsatisfiable-variants": "warn";
|
|
54
|
+
readonly "clamped-value": "warn";
|
|
55
|
+
readonly "invalid-theme-reference": "deny";
|
|
56
|
+
readonly "invalid-css-import": "deny";
|
|
57
|
+
readonly "invalid-css-directive": "deny";
|
|
58
|
+
readonly "invalid-runtime-condition": "deny";
|
|
59
|
+
readonly "duplicate-definition": "warn";
|
|
60
|
+
readonly "bypassed-undefinition": "warn";
|
|
61
|
+
readonly "ignored-definition-condition": "deny";
|
|
62
|
+
readonly "incompatible-theme-value": "deny";
|
|
63
|
+
readonly "ignored-tailwind-feature": "warn";
|
|
64
|
+
readonly "prefer-explicit-nesting-selector": "warn";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly strict: {
|
|
68
|
+
readonly name: "stillwind/strict";
|
|
69
|
+
readonly extends: readonly [{
|
|
70
|
+
readonly name: "stillwind/recommended";
|
|
71
|
+
readonly rules: {
|
|
72
|
+
readonly "invalid-lint-suppression": "warn";
|
|
73
|
+
readonly "duplicate-utility": "warn";
|
|
74
|
+
readonly "conflicting-utilities": "warn";
|
|
75
|
+
readonly "mismatched-framework-import": "warn";
|
|
76
|
+
readonly "mutating-macro-argument": "deny";
|
|
77
|
+
readonly "suspending-macro-argument": "deny";
|
|
78
|
+
readonly "invalid-rule-group-input": "deny";
|
|
79
|
+
readonly "invalid-style-input": "deny";
|
|
80
|
+
readonly "invalid-cva-config": "deny";
|
|
81
|
+
readonly "invalid-cva-input": "deny";
|
|
82
|
+
readonly "invalid-keyframes-use": "deny";
|
|
83
|
+
readonly "invalid-keyframes-definition": "deny";
|
|
84
|
+
readonly "invalid-keyframes-variant": "deny";
|
|
85
|
+
readonly "invalid-view-transition-use": "deny";
|
|
86
|
+
readonly "invalid-view-transition-definition": "deny";
|
|
87
|
+
readonly "invalid-view-transition-variant": "deny";
|
|
88
|
+
readonly "invalid-media-query": "deny";
|
|
89
|
+
readonly "invalid-css-input": "deny";
|
|
90
|
+
readonly "invalid-ref-input": "deny";
|
|
91
|
+
readonly "invalid-animation-option": "deny";
|
|
92
|
+
readonly "invalid-style-composition": "deny";
|
|
93
|
+
readonly "runtime-condition-requires-css-if": "deny";
|
|
94
|
+
readonly "unverified-style-base": "warn";
|
|
95
|
+
readonly "ineffective-anchor-scope": "warn";
|
|
96
|
+
readonly "missing-ref-attachment": "warn";
|
|
97
|
+
readonly "conflicting-provider-properties": "warn";
|
|
98
|
+
readonly "document-scoped-selector": "deny";
|
|
99
|
+
readonly "repeated-nesting-selector": "warn";
|
|
100
|
+
readonly "missing-view-transition-name": "warn";
|
|
101
|
+
readonly "duplicate-view-transition-name": "warn";
|
|
102
|
+
readonly "split-view-transition-class": "warn";
|
|
103
|
+
readonly "ambiguous-style-base-order": "warn";
|
|
104
|
+
readonly "interfering-imported-style-base": "warn";
|
|
105
|
+
readonly "incompatible-property-value": "deny";
|
|
106
|
+
readonly "invalid-utility": "deny";
|
|
107
|
+
readonly "unknown-utility": "warn";
|
|
108
|
+
readonly "invalid-marker-use": "warn";
|
|
109
|
+
readonly "invalid-variant": "deny";
|
|
110
|
+
readonly "unknown-variant": "warn";
|
|
111
|
+
readonly "missing-document-target": "deny";
|
|
112
|
+
readonly "prefer-canonical-utilities": "warn";
|
|
113
|
+
readonly "redundant-variant": "warn";
|
|
114
|
+
readonly "unsatisfiable-variants": "warn";
|
|
115
|
+
readonly "clamped-value": "warn";
|
|
116
|
+
readonly "invalid-theme-reference": "deny";
|
|
117
|
+
readonly "invalid-css-import": "deny";
|
|
118
|
+
readonly "invalid-css-directive": "deny";
|
|
119
|
+
readonly "invalid-runtime-condition": "deny";
|
|
120
|
+
readonly "duplicate-definition": "warn";
|
|
121
|
+
readonly "bypassed-undefinition": "warn";
|
|
122
|
+
readonly "ignored-definition-condition": "deny";
|
|
123
|
+
readonly "incompatible-theme-value": "deny";
|
|
124
|
+
readonly "ignored-tailwind-feature": "warn";
|
|
125
|
+
readonly "prefer-explicit-nesting-selector": "warn";
|
|
126
|
+
};
|
|
127
|
+
}];
|
|
128
|
+
readonly rules: {
|
|
129
|
+
readonly "invalid-lint-suppression": "deny";
|
|
130
|
+
readonly "duplicate-utility": "deny";
|
|
131
|
+
readonly "conflicting-utilities": "deny";
|
|
132
|
+
readonly "mismatched-framework-import": "deny";
|
|
133
|
+
readonly "mutating-macro-argument": "deny";
|
|
134
|
+
readonly "suspending-macro-argument": "deny";
|
|
135
|
+
readonly "invalid-rule-group-input": "deny";
|
|
136
|
+
readonly "invalid-style-input": "deny";
|
|
137
|
+
readonly "invalid-cva-config": "deny";
|
|
138
|
+
readonly "invalid-cva-input": "deny";
|
|
139
|
+
readonly "invalid-keyframes-use": "deny";
|
|
140
|
+
readonly "invalid-keyframes-definition": "deny";
|
|
141
|
+
readonly "invalid-keyframes-variant": "deny";
|
|
142
|
+
readonly "invalid-view-transition-use": "deny";
|
|
143
|
+
readonly "invalid-view-transition-definition": "deny";
|
|
144
|
+
readonly "invalid-view-transition-variant": "deny";
|
|
145
|
+
readonly "invalid-media-query": "deny";
|
|
146
|
+
readonly "invalid-css-input": "deny";
|
|
147
|
+
readonly "invalid-ref-input": "deny";
|
|
148
|
+
readonly "invalid-animation-option": "deny";
|
|
149
|
+
readonly "invalid-style-composition": "deny";
|
|
150
|
+
readonly "runtime-condition-requires-css-if": "deny";
|
|
151
|
+
readonly "unverified-style-base": "deny";
|
|
152
|
+
readonly "ineffective-anchor-scope": "deny";
|
|
153
|
+
readonly "missing-ref-attachment": "deny";
|
|
154
|
+
readonly "conflicting-provider-properties": "deny";
|
|
155
|
+
readonly "document-scoped-selector": "deny";
|
|
156
|
+
readonly "repeated-nesting-selector": "deny";
|
|
157
|
+
readonly "missing-view-transition-name": "deny";
|
|
158
|
+
readonly "duplicate-view-transition-name": "deny";
|
|
159
|
+
readonly "split-view-transition-class": "deny";
|
|
160
|
+
readonly "ambiguous-style-base-order": "deny";
|
|
161
|
+
readonly "interfering-imported-style-base": "deny";
|
|
162
|
+
readonly "incompatible-property-value": "deny";
|
|
163
|
+
readonly "invalid-utility": "deny";
|
|
164
|
+
readonly "unknown-utility": "deny";
|
|
165
|
+
readonly "invalid-marker-use": "deny";
|
|
166
|
+
readonly "invalid-variant": "deny";
|
|
167
|
+
readonly "unknown-variant": "deny";
|
|
168
|
+
readonly "missing-document-target": "deny";
|
|
169
|
+
readonly "prefer-canonical-utilities": "deny";
|
|
170
|
+
readonly "redundant-variant": "deny";
|
|
171
|
+
readonly "unsatisfiable-variants": "deny";
|
|
172
|
+
readonly "clamped-value": "deny";
|
|
173
|
+
readonly "invalid-theme-reference": "deny";
|
|
174
|
+
readonly "invalid-css-import": "deny";
|
|
175
|
+
readonly "invalid-css-directive": "deny";
|
|
176
|
+
readonly "invalid-runtime-condition": "deny";
|
|
177
|
+
readonly "duplicate-definition": "deny";
|
|
178
|
+
readonly "bypassed-undefinition": "deny";
|
|
179
|
+
readonly "ignored-definition-condition": "deny";
|
|
180
|
+
readonly "incompatible-theme-value": "deny";
|
|
181
|
+
readonly "ignored-tailwind-feature": "deny";
|
|
182
|
+
readonly "prefer-explicit-nesting-selector": "deny";
|
|
183
|
+
readonly "unused-lint-suppression": "deny";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly stylistic: {
|
|
187
|
+
readonly name: "stillwind/stylistic";
|
|
188
|
+
readonly rules: {
|
|
189
|
+
readonly "prefer-direct-styling": "warn";
|
|
190
|
+
readonly "prefer-logical-properties": "warn";
|
|
191
|
+
readonly "prefer-typed-relationships": "warn";
|
|
192
|
+
readonly "prefer-sorted-utilities": "warn";
|
|
193
|
+
readonly "prefer-typed-variables": "warn";
|
|
194
|
+
readonly "prefer-variant-directive": "warn";
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Merges objects recursively. Undefined preserves previous values, arrays and promises are
|
|
200
|
+
* replaced, and a changed provider kind replaces that provider's complete configuration.
|
|
201
|
+
*
|
|
202
|
+
* @param base - Settings to preserve where overrides omit a value.
|
|
203
|
+
* @param overrides - Fields to merge or replace. Neither input is modified.
|
|
204
|
+
* @returns Merged settings. Unchanged values and replacement arrays can share input references.
|
|
205
|
+
*/
|
|
206
|
+
export declare function mergeConfig<T extends object>(base: T, overrides: Partial<T>): T;
|
|
207
|
+
export { type AnalysisProjectConfig, type ArbitrarySpacingOptions, type BaseConfig, type BuildConfig, type BuildOptions, type CanonicalUtilitiesOptions, type CapturedProjectConfig, type ConflictingUtilitiesOptions, type DefinitionScope, type ImportantOptions, type InlineConfig, type LengthUnitsOptions, type LintCategory, type LintConfig, type LintPreset, type LintRule, type LintRules, type LintScope, type LintSeverity, type LogicalPropertiesOptions, type MarkerUseOptions, type NormalizedCompilerConfig, type PluginContext, type PluginDirectoryEntry, type PluginWatchKind, type PreviewOptions, type ProjectionProvider, type ResolvedLintRules, type RestrictedDeclarationsOptions, type RestrictedThemeTokensOptions, type RestrictedUtilitiesOptions, type SerializableInlineConfig, type SourceProvider, type SourceProviderContext, type StillwindConfig, type StillwindConfigExport, type StillwindConfigFactory, type StillwindPlugin, type TailwindConfig, type UtilitySortOptions, type VariantDirectiveOptions, captureProjectConfig, configurationFiles, defineConfig, definePlugin, lintRules, mergeLintConfig, normalizeCompilerConfig, resolveConfig, resolveLintConfig, validateCompilerConfig, validateConfig };
|
|
208
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { _ as lintRules, c as mergeConfig, d as resolveConfig, f as validateConfig, g as resolveLintConfig, h as mergeLintConfig, l as captureProjectConfig, m as validateCompilerConfig, p as normalizeCompilerConfig, r as configurationFiles, u as defineConfig, v as lintPresets } from "./resolution-BK-NUhyh.js";
|
|
2
|
+
// src/plugins.ts
|
|
3
|
+
/**
|
|
4
|
+
* Returns `plugin` unchanged with its type checked, for use in a configuration file.
|
|
5
|
+
*
|
|
6
|
+
* @param plugin - Plugin definition.
|
|
7
|
+
* @returns The same object.
|
|
8
|
+
*/
|
|
9
|
+
function definePlugin(plugin) {
|
|
10
|
+
return plugin;
|
|
11
|
+
}
|
|
12
|
+
export { captureProjectConfig, configurationFiles, defineConfig, definePlugin, lintPresets, lintRules, mergeConfig, mergeLintConfig, normalizeCompilerConfig, resolveConfig, resolveLintConfig, validateCompilerConfig, validateConfig };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/plugins.ts"],"sourcesContent":["/**\n * A Stillwind plugin: JavaScript that generates Stillwind CSS for a design system.\n *\n * A stylesheet loads a plugin with `@plugin \"<name>\";` or `@plugin \"<name>\" { option: value; }`.\n * The CSS that {@link StillwindPlugin.css} returns replaces the statement, so it can contain\n * `@utility`, `@custom-variant`, `@theme`, and the other Stillwind directives.\n *\n * A `@stillwind-banner` block contains one `/*!` comment, such as a license notice, that the\n * output keeps. A block inside `@theme` or `@utility` adds its notice only when the output uses a\n * value of that `@theme` block or CSS of that utility. A block outside\n * definitions adds its notice to every nonempty output.\n *\n * A plugin can also define utilities on demand. Its CSS declares a family with\n * `@stillwind-dynamic <prefix>*;` for named candidates such as `icon-mdi--close`, with\n * `@stillwind-dynamic <prefix>[*];` for bracket candidates such as `icon-[mdi--close]`, or with\n * both. The host then passes the candidates of that family that modules use, and that are not\n * defined yet, to {@link StillwindPlugin.resolve}. The returned CSS joins the plugin's CSS, and\n * the host compiles the modules again.\n */\nexport interface StillwindPlugin {\n /**\n * Name that `@plugin` uses to select this plugin, such as `\"@stillwind/plugin-iconify\"`.\n * A project's `plugins` entry takes precedence over a package of the same name.\n */\n readonly name: string;\n /**\n * Returns the CSS that replaces the `@plugin` statement.\n *\n * @param context - Options of the statement and host operations.\n * @returns Stillwind CSS. It must not contain `@import` or `@plugin`.\n */\n css(context: PluginContext): string | Promise<string>;\n /**\n * Defines candidates of the dynamic families that the plugin's CSS declares.\n *\n * @param candidates - Utility names without variants, modifiers, or `!`, such as\n * `icon-mdi--close`. When the family accepts both forms, a bracket spelling such as\n * `icon-[mdi--close]` arrives in its named form. When the family accepts only the bracket form,\n * the bracket spelling arrives as written, and the plugin defines it under that name, such as\n * `@utility icon-[mdi--close]`.\n * @param context - Options of the statement and host operations.\n * @returns Stillwind CSS that defines some or all of the candidates. A candidate that it leaves\n * undefined is not passed again while the design system is loaded.\n */\n resolve?(candidates: readonly string[], context: PluginContext): string | Promise<string>;\n /**\n * Lists the candidates that editors complete for the plugin's dynamic families.\n *\n * The host calls it once with an empty `input` for the candidates that editors always offer,\n * and again with the text of an editor input. A plugin can therefore list a large family only\n * after the input narrows it.\n *\n * @param context - Options of the statement and host operations.\n * @param input - Utility text before the editor's cursor, without variants, such as\n * `icon-mdi--cl`, or an empty string.\n * @returns Utility names in the form that {@link StillwindPlugin.resolve} accepts. The host\n * keeps only names that start with `input`. A name that ends with `-` is incomplete, such as\n * `icon-mdi--`. Editors insert it and request completion again.\n */\n catalog?(context: PluginContext, input: string): readonly string[] | Promise<readonly string[]>;\n}\n\n/** Inputs of one loaded `@plugin` statement. */\nexport interface PluginContext {\n /**\n * Declarations of the statement's options block, keyed by name. A later declaration of a name\n * replaces an earlier one. Values are the trimmed declaration text without the semicolon. Each\n * run of whitespace and comments between top-level tokens becomes one space, and strings keep\n * their quotes. A statement without a block has no options.\n */\n readonly options: Readonly<Record<string, string>>;\n /** Absolute project directory. */\n readonly root: string;\n /**\n * Registers a file or directory that the plugin reads, so that a change reloads the design\n * system. A file reloads it when its content changes. A directory reloads it when an entry is\n * added, removed, or renamed. A change to an entry's content does not reload it unless the\n * plugin also watches that entry. A host that does not reload the design system ignores both\n * kinds.\n *\n * @param path - Absolute file or directory path.\n * @param kind - Whether `path` names a file or a directory. Defaults to `\"file\"`.\n */\n watch(path: string, kind?: PluginWatchKind): void;\n /**\n * Resolves a module request from the stylesheet that contains the statement, with the host's\n * module resolution. A plugin uses it instead of Node APIs, so that it also runs in browser hosts.\n *\n * @param specifier - Package specifier with an optional subpath, such as\n * `@iconify-json/mdi/icons.json`, or a relative or absolute path.\n * @returns The absolute path of the file, or undefined when the request does not resolve.\n */\n resolve(specifier: string): Promise<string | undefined>;\n /**\n * Reads a text file through the host.\n *\n * @param path - Absolute file path, such as a result of {@link PluginContext.resolve}.\n * @returns The file's text.\n * @throws If the file does not exist or cannot be read.\n */\n read(path: string): Promise<string>;\n /**\n * Lists the entries of a directory through the host. Listing does not watch the directory.\n *\n * @param path - Absolute directory path.\n * @returns The directory's own entries in no particular order, without the entries of its\n * subdirectories.\n * @throws If the directory does not exist or cannot be read, or the host cannot list directories.\n */\n list(path: string): Promise<readonly PluginDirectoryEntry[]>;\n}\n\n/** Kind of path that {@link PluginContext.watch} registers. */\nexport type PluginWatchKind = \"file\" | \"directory\";\n\n/** One entry of a directory that {@link PluginContext.list} returns. */\nexport interface PluginDirectoryEntry {\n /** Entry name without the directory path. */\n name: string;\n /** Whether the entry is a directory or a symbolic link to a directory. */\n directory: boolean;\n}\n\n/**\n * Returns `plugin` unchanged with its type checked, for use in a configuration file.\n *\n * @param plugin - Plugin definition.\n * @returns The same object.\n */\nexport function definePlugin(plugin: StillwindPlugin): StillwindPlugin {\n return plugin;\n}\n"],"mappings":";;;;;;;;AAiIA,SAAgB,aAAa,QAA0C;CACrE,OAAO;AACT"}
|
package/dist/node.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { _ as BaseConfig, b as NormalizedCompilerConfig, i as AnalysisProjectConfig, t as InlineConfig, u as StillwindConfig } from "./resolution-BnR6LLM-.js";
|
|
2
|
+
/** Evaluated settings and files that consumers must watch when retaining a compiler session. */
|
|
3
|
+
export interface LoadedConfiguration {
|
|
4
|
+
/** Validated settings after awaiting the module export and invoking its factory, if supplied. */
|
|
5
|
+
config: StillwindConfig;
|
|
6
|
+
/** Absolute path of the evaluated configuration file. */
|
|
7
|
+
configFile: string;
|
|
8
|
+
/** Distinct absolute paths of the configuration, bundled local imports, and resolved external imports. */
|
|
9
|
+
dependencies: string[];
|
|
10
|
+
}
|
|
11
|
+
/** Settings for one build integration after project selection and inline overrides. */
|
|
12
|
+
export interface ResolvedIntegrationConfig {
|
|
13
|
+
/** Selected compiler settings after inline overrides and defaults. Filesystem paths are absolute. */
|
|
14
|
+
config: NormalizedCompilerConfig & {
|
|
15
|
+
/** Absolute selected project directory after applying inline overrides. */
|
|
16
|
+
root: string;
|
|
17
|
+
/** Absolute design-system stylesheet path, without an existence check. */
|
|
18
|
+
css: string;
|
|
19
|
+
};
|
|
20
|
+
/** Absolute evaluated configuration path, or undefined when no file was loaded. */
|
|
21
|
+
configFile?: string;
|
|
22
|
+
/** Existing configuration dependency paths to watch. Empty when settings are entirely inline. */
|
|
23
|
+
dependencies: string[];
|
|
24
|
+
/** Absolute missing candidate paths before the selected file, nearest directory first. Watch their creation. */
|
|
25
|
+
missing: string[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Finds the nearest supported stillwind.config.* file at or above an application directory.
|
|
29
|
+
*
|
|
30
|
+
* @param directory - Directory to start from. Relative paths use the process working directory.
|
|
31
|
+
* @returns The first existing candidate's absolute path, or undefined if none exists.
|
|
32
|
+
*/
|
|
33
|
+
export declare function findConfiguration(directory: string): string | undefined;
|
|
34
|
+
/** An evaluated module and the files that its evaluation read. */
|
|
35
|
+
export interface EvaluatedModule {
|
|
36
|
+
/** Default export, or the module value when it has no default export. */
|
|
37
|
+
exported: unknown;
|
|
38
|
+
/** Distinct absolute paths of the entry, bundled local imports, and resolved external imports. */
|
|
39
|
+
dependencies: string[];
|
|
40
|
+
/** Text of each bundled local file, keyed by absolute path, as the bundler read it. */
|
|
41
|
+
sources: Map<string, string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Bundles local imports of a module in memory and evaluates the bundle without module
|
|
45
|
+
* caches. Local sources are read again on each call, so a changed local import takes
|
|
46
|
+
* effect. External packages use runtime module loading, and Node keeps them cached. The
|
|
47
|
+
* module runs as trusted Node code and can perform side effects. Evaluation is
|
|
48
|
+
* available before a framework generates its TypeScript configuration.
|
|
49
|
+
*
|
|
50
|
+
* `import.meta.url`, `import.meta.filename`, `import.meta.dirname`, `__filename`, and
|
|
51
|
+
* `__dirname` describe the original source file of each bundled module.
|
|
52
|
+
*
|
|
53
|
+
* @param file - JS, TS, or JSON module path. Relative paths use the process working
|
|
54
|
+
* directory.
|
|
55
|
+
* @returns The export and the file paths observed while resolving and bundling imports.
|
|
56
|
+
* Runtime file reads and imports that cannot be statically resolved are not added to
|
|
57
|
+
* dependencies.
|
|
58
|
+
* @throws If a package cannot be resolved, or bundling or module evaluation fails.
|
|
59
|
+
*/
|
|
60
|
+
export declare function evaluateModule(file: string): Promise<EvaluatedModule>;
|
|
61
|
+
/**
|
|
62
|
+
* Evaluates a configuration module with {@link evaluateModule} and validates its settings.
|
|
63
|
+
* Configuration runs as trusted Node code and can perform side effects.
|
|
64
|
+
*
|
|
65
|
+
* @param file - JS, TS, or JSON configuration path. Relative paths use the process working directory.
|
|
66
|
+
* @returns Evaluated settings and the file paths observed while resolving and bundling imports.
|
|
67
|
+
* Runtime file reads and imports that cannot be statically resolved are not added to dependencies.
|
|
68
|
+
* @throws If bundling, module evaluation, factory execution, or configuration validation fails.
|
|
69
|
+
*/
|
|
70
|
+
export declare function loadConfiguration(file: string): Promise<LoadedConfiguration>;
|
|
71
|
+
/**
|
|
72
|
+
* Resolves project paths and removes analysis scope and provider settings.
|
|
73
|
+
*
|
|
74
|
+
* @param project - Evaluated project configuration with paths relative to its root.
|
|
75
|
+
* @param directory - Base directory for a relative project root, normally the configuration directory.
|
|
76
|
+
* @returns Compiler settings with absolute root, CSS, and tsconfig paths. The supplied project is not modified.
|
|
77
|
+
* A false or omitted tsconfig setting is preserved.
|
|
78
|
+
* @throws If compiler normalization fails or the project does not supply a valid CSS path.
|
|
79
|
+
*/
|
|
80
|
+
export declare function resolveProjectConfig(project: AnalysisProjectConfig, directory: string): NormalizedCompilerConfig & {
|
|
81
|
+
/** Absolute root resolved against directory. */
|
|
82
|
+
root: string;
|
|
83
|
+
/** Absolute CSS entrypoint resolved against the project's root. */
|
|
84
|
+
css: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Loads build settings and merges inline overrides into one selected project's compiler settings.
|
|
88
|
+
* Without an explicit name, selection uses the sole project or the unique deepest root containing
|
|
89
|
+
* the application directory after its inline root override. Arrays are replaced during merging.
|
|
90
|
+
*
|
|
91
|
+
* @param inline - File selection, optional project name, and compiler overrides. An inline root
|
|
92
|
+
* uses applicationRoot. A configured root uses the configuration file's directory.
|
|
93
|
+
* @param applicationRoot - Build directory used for discovery and relative inline paths.
|
|
94
|
+
* Relative paths use the process working directory.
|
|
95
|
+
* @param defaults - Browser targets used when the selected project and inline settings omit target.
|
|
96
|
+
* @returns Validated compiler settings with an absolute root and paths to watch. When discovery
|
|
97
|
+
* finds no file, inline settings must supply a CSS entrypoint.
|
|
98
|
+
* @throws If an explicit file is missing, project selection is ambiguous or unsuccessful,
|
|
99
|
+
* configuration evaluation fails, or merged compiler settings are invalid.
|
|
100
|
+
*/
|
|
101
|
+
export declare function resolveIntegrationConfig(inline: InlineConfig, applicationRoot: string, defaults?: Pick<BaseConfig, "target">): Promise<ResolvedIntegrationConfig>;
|
|
102
|
+
//# sourceMappingURL=node.d.ts.map
|