@wtf/project-docs 3.0.0 → 5.0.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/api/.generated +1 -14
- package/api/@wtf/project-astro/config/functions/baseConfig.md +1 -1
- package/api/@wtf/project-astro/config/functions/baseOf.md +1 -1
- package/api/@wtf/project-astro/config/functions/siteOf.md +1 -1
- package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +6 -6
- package/api/@wtf/project-astro/config/type-aliases/Env.md +1 -1
- package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
- package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
- package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
- package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/functions/links.md +1 -1
- package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +2 -2
- package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
- package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/pages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
- package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
- package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
- package/api/@wtf/project-astro/preview/functions/files.md +1 -1
- package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
- package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
- package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
- package/api/@wtf/project-astro/preview/functions/previewOf.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
- package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
- package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
- package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +3 -3
- package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
- package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +1 -1
- package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +1 -1
- package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
- package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroProperties.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroSchema.md +1 -1
- package/api/@wtf/project-config/README.md +23 -32
- package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
- package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
- package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
- package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
- package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
- package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
- package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
- package/api/@wtf/project-config/errors/README.md +3 -5
- package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -5
- package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
- package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
- package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
- package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
- package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
- package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
- package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
- package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +6 -6
- package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
- package/api/@wtf/project-config/index/README.md +1 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +2 -2
- package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
- package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
- package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
- package/api/@wtf/project-config/load/README.md +3 -7
- package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
- package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
- package/api/@wtf/project-config/load/functions/loadConfig.md +1 -1
- package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +3 -3
- package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +4 -4
- package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +2 -2
- package/api/@wtf/project-config/locate/README.md +1 -5
- package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +3 -3
- package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
- package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
- package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +3 -3
- package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
- package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
- package/api/@wtf/project-config/named/README.md +2 -2
- package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/LoadModule.md +3 -1
- package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
- package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
- package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
- package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
- package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
- package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
- package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
- package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
- package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
- package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
- package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
- package/api/@wtf/project-config/section/README.md +4 -5
- package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
- package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
- package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
- package/api/@wtf/project-config/section/functions/sectionOf.md +5 -5
- package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
- package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
- package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
- package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
- package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
- package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
- package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
- package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
- package/api/@wtf/project-oxfmt/schema/README.md +5 -2
- package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
- package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
- package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
- package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
- package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
- package/api/@wtf/project-oxlint/schema/README.md +5 -2
- package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
- package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
- package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
- package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
- package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
- package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
- package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
- package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
- package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
- package/api/@wtf/project-typedoc/README.md +3 -5
- package/api/@wtf/project-typedoc/config/README.md +1 -4
- package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +5 -4
- package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +3 -3
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +7 -8
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +6 -5
- package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +4 -4
- package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +4 -4
- package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
- package/api/@wtf/project-typedoc/schema/README.md +0 -1
- package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +3 -4
- package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +1 -1
- package/api/@wtf/project-vite/config/functions/baseConfig.md +4 -4
- package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
- package/api/@wtf/project-vite/config/functions/compress.md +1 -1
- package/api/@wtf/project-vite/config/functions/conditionsOf.md +1 -1
- package/api/@wtf/project-vite/config/functions/fromDist.md +1 -1
- package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +3 -3
- package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
- package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
- package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
- package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
- package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +1 -1
- package/api/@wtf/project-vite/schema/variables/viteSchema.md +1 -1
- package/api/@wtf/project-vitest/README.md +4 -5
- package/api/@wtf/project-vitest/browser/functions/browserConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +4 -4
- package/api/@wtf/project-vitest/config/README.md +4 -2
- package/api/@wtf/project-vitest/config/functions/fromDist.md +1 -1
- package/api/@wtf/project-vitest/config/functions/integrationConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/packageConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/rootConfig.md +3 -3
- package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +10 -23
- package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +4 -4
- package/api/@wtf/project-vitest/config/type-aliases/VitestRootPlatform.md +13 -0
- package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
- package/api/@wtf/project-vitest/config/variables/integration.md +9 -9
- package/api/@wtf/project-vitest/process/functions/childEnv.md +1 -1
- package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
- package/api/@wtf/project-vitest/schema/README.md +0 -1
- package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +4 -4
- package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +1 -1
- package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +1 -1
- package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +2 -2
- package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
- package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/execOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +8 -8
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
- package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
- package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
- package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
- package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Exec.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
- package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
- package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +2 -2
- package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +6 -6
- package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
- package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
- package/api/@wtf/project-wpt/node/functions/nodeSystem.md +1 -1
- package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
- package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
- package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +8 -8
- package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +1 -1
- package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
- package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
- package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
- package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
- package/api/llms.txt +1 -1
- package/guides/config.md +10 -34
- package/guides/getting-started.md +5 -4
- package/guides/presets.md +3 -4
- package/guides/vitest.md +8 -9
- package/package.json +4 -4
- package/api/@wtf/project-config/errors/classes/SyncConfigInCodeError.md +0 -177
- package/api/@wtf/project-config/index/type-aliases/ConfigSyncPlatform.md +0 -33
- package/api/@wtf/project-config/index/type-aliases/SyncFiles.md +0 -55
- package/api/@wtf/project-config/load/functions/loadConfigSync.md +0 -25
- package/api/@wtf/project-config/load/type-aliases/LoadSyncOptions.md +0 -17
- package/api/@wtf/project-config/load/type-aliases/LoadSyncPlatform.md +0 -19
- package/api/@wtf/project-config/locate/functions/locateConfigSync.md +0 -23
- package/api/@wtf/project-config/locate/functions/projectRootOfSync.md +0 -23
- package/api/@wtf/project-config/locate/type-aliases/LocateSyncOptions.md +0 -17
- package/api/@wtf/project-config/node/README.md +0 -26
- package/api/@wtf/project-config/node/functions/nodeLoadModule.md +0 -32
- package/api/@wtf/project-config/node/functions/nodeSyncPlatform.md +0 -23
- package/api/@wtf/project-config/section/functions/sectionOfSync.md +0 -35
- package/api/@wtf/project-typedoc/config/type-aliases/RevisionSources.md +0 -35
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [errors](../README.md) / SyncConfigInCodeError
|
|
2
|
-
|
|
3
|
-
# Class: SyncConfigInCodeError
|
|
4
|
-
|
|
5
|
-
Defined in: [packages/project-config/src/errors.ts:226](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/errors.ts#L226)
|
|
6
|
-
|
|
7
|
-
A configuration of code, as `wtf.config.ts`, loaded synchronously, as `loadConfigSync` of ./load
|
|
8
|
-
loads it for a tool that reads its config synchronously: code is imported, which is
|
|
9
|
-
asynchronous. Its message names the files a synchronous load reads, JSON and package.json's key.
|
|
10
|
-
|
|
11
|
-
## Extends
|
|
12
|
-
|
|
13
|
-
- [`ConfigError`](ConfigError.md)
|
|
14
|
-
|
|
15
|
-
## Constructors
|
|
16
|
-
|
|
17
|
-
### Constructor
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
new SyncConfigInCodeError(file, read): SyncConfigInCodeError;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Defined in: [packages/project-config/src/errors.ts:230](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/errors.ts#L230)
|
|
24
|
-
|
|
25
|
-
#### Parameters
|
|
26
|
-
|
|
27
|
-
| Parameter | Type |
|
|
28
|
-
| ------ | ------ |
|
|
29
|
-
| `file` | `string` |
|
|
30
|
-
| `read` | \{ `files`: readonly `string`[]; `key`: `string`; \} |
|
|
31
|
-
| `read.files` | readonly `string`[] |
|
|
32
|
-
| `read.key` | `string` |
|
|
33
|
-
|
|
34
|
-
#### Returns
|
|
35
|
-
|
|
36
|
-
`SyncConfigInCodeError`
|
|
37
|
-
|
|
38
|
-
#### Overrides
|
|
39
|
-
|
|
40
|
-
[`ConfigError`](ConfigError.md).[`constructor`](ConfigError.md#constructor)
|
|
41
|
-
|
|
42
|
-
## Properties
|
|
43
|
-
|
|
44
|
-
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
45
|
-
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
46
|
-
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`ConfigError`](ConfigError.md).[`cause`](ConfigError.md#property-cause) | - |
|
|
47
|
-
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`ConfigError`](ConfigError.md).[`code`](ConfigError.md#property-code) | [packages/project-config/src/errors.ts:24](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/errors.ts#L24) |
|
|
48
|
-
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`ConfigError`](ConfigError.md).[`exitCode`](ConfigError.md#property-exitcode) | [packages/project-config/src/errors.ts:26](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/errors.ts#L26) |
|
|
49
|
-
| <a id="property-file"></a> `file` | `readonly` | `string` | `undefined` | The file of code, by its absolute path. | - | [packages/project-config/src/errors.ts:228](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/errors.ts#L228) |
|
|
50
|
-
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`ConfigError`](ConfigError.md).[`message`](ConfigError.md#property-message) | - |
|
|
51
|
-
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`ConfigError`](ConfigError.md).[`name`](ConfigError.md#property-name) | - |
|
|
52
|
-
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`ConfigError`](ConfigError.md).[`stack`](ConfigError.md#property-stack) | - |
|
|
53
|
-
| <a id="property-stacktracelimit"></a> `stackTraceLimit` | `static` | `number` | `undefined` | The `Error.stackTraceLimit` property specifies the number of stack frames collected by a stack trace (whether generated by `new Error().stack` or `Error.captureStackTrace(obj)`). The default value is `10` but may be set to any valid JavaScript number. Changes will affect any stack trace captured _after_ the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | [`ConfigError`](ConfigError.md).[`stackTraceLimit`](ConfigError.md#property-stacktracelimit) | - |
|
|
54
|
-
|
|
55
|
-
## Methods
|
|
56
|
-
|
|
57
|
-
### captureStackTrace()
|
|
58
|
-
|
|
59
|
-
```ts
|
|
60
|
-
static captureStackTrace(targetObject, constructorOpt?): void;
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Defined in: `@types/node`
|
|
64
|
-
|
|
65
|
-
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
66
|
-
a string representing the location in the code at which
|
|
67
|
-
`Error.captureStackTrace()` was called.
|
|
68
|
-
|
|
69
|
-
```js
|
|
70
|
-
const myObject = {};
|
|
71
|
-
Error.captureStackTrace(myObject);
|
|
72
|
-
myObject.stack; // Similar to `new Error().stack`
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
The first line of the trace will be prefixed with
|
|
76
|
-
`${myObject.name}: ${myObject.message}`.
|
|
77
|
-
|
|
78
|
-
The optional `constructorOpt` argument accepts a function. If given, all frames
|
|
79
|
-
above `constructorOpt`, including `constructorOpt`, will be omitted from the
|
|
80
|
-
generated stack trace.
|
|
81
|
-
|
|
82
|
-
The `constructorOpt` argument is useful for hiding implementation
|
|
83
|
-
details of error generation from the user. For instance:
|
|
84
|
-
|
|
85
|
-
```js
|
|
86
|
-
function a() {
|
|
87
|
-
b();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function b() {
|
|
91
|
-
c();
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function c() {
|
|
95
|
-
// Create an error without stack trace to avoid calculating the stack trace twice.
|
|
96
|
-
const { stackTraceLimit } = Error;
|
|
97
|
-
Error.stackTraceLimit = 0;
|
|
98
|
-
const error = new Error();
|
|
99
|
-
Error.stackTraceLimit = stackTraceLimit;
|
|
100
|
-
|
|
101
|
-
// Capture the stack trace above function b
|
|
102
|
-
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
|
|
103
|
-
throw error;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
a();
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
#### Parameters
|
|
110
|
-
|
|
111
|
-
| Parameter | Type |
|
|
112
|
-
| ------ | ------ |
|
|
113
|
-
| `targetObject` | `object` |
|
|
114
|
-
| `constructorOpt?` | `Function` |
|
|
115
|
-
|
|
116
|
-
#### Returns
|
|
117
|
-
|
|
118
|
-
`void`
|
|
119
|
-
|
|
120
|
-
#### Inherited from
|
|
121
|
-
|
|
122
|
-
[`ConfigError`](ConfigError.md).[`captureStackTrace`](ConfigError.md#capturestacktrace)
|
|
123
|
-
|
|
124
|
-
***
|
|
125
|
-
|
|
126
|
-
### isError()
|
|
127
|
-
|
|
128
|
-
```ts
|
|
129
|
-
static isError(error): error is Error;
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Defined in: `typescript`
|
|
133
|
-
|
|
134
|
-
Indicates whether the argument provided is a built-in Error instance or not.
|
|
135
|
-
|
|
136
|
-
#### Parameters
|
|
137
|
-
|
|
138
|
-
| Parameter | Type |
|
|
139
|
-
| ------ | ------ |
|
|
140
|
-
| `error` | `unknown` |
|
|
141
|
-
|
|
142
|
-
#### Returns
|
|
143
|
-
|
|
144
|
-
`error is Error`
|
|
145
|
-
|
|
146
|
-
#### Inherited from
|
|
147
|
-
|
|
148
|
-
[`ConfigError`](ConfigError.md).[`isError`](ConfigError.md#iserror)
|
|
149
|
-
|
|
150
|
-
***
|
|
151
|
-
|
|
152
|
-
### prepareStackTrace()
|
|
153
|
-
|
|
154
|
-
```ts
|
|
155
|
-
static prepareStackTrace(err, stackTraces): any;
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
Defined in: `@types/node`
|
|
159
|
-
|
|
160
|
-
#### Parameters
|
|
161
|
-
|
|
162
|
-
| Parameter | Type |
|
|
163
|
-
| ------ | ------ |
|
|
164
|
-
| `err` | `Error` |
|
|
165
|
-
| `stackTraces` | `CallSite`[] |
|
|
166
|
-
|
|
167
|
-
#### Returns
|
|
168
|
-
|
|
169
|
-
`any`
|
|
170
|
-
|
|
171
|
-
#### See
|
|
172
|
-
|
|
173
|
-
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
174
|
-
|
|
175
|
-
#### Inherited from
|
|
176
|
-
|
|
177
|
-
[`ConfigError`](ConfigError.md).[`prepareStackTrace`](ConfigError.md#preparestacktrace)
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [index](../README.md) / ConfigSyncPlatform
|
|
2
|
-
|
|
3
|
-
# Type Alias: ConfigSyncPlatform
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
type ConfigSyncPlatform = object;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/index.ts:214](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/index.ts#L214)
|
|
10
|
-
|
|
11
|
-
What the configuration is read by synchronously: the platform's paths, and its files, read
|
|
12
|
-
synchronously, as no handle of the File System Standard is. `nodeSyncPlatform()` of ./node adds
|
|
13
|
-
Node's files to a platform.
|
|
14
|
-
|
|
15
|
-
## Properties
|
|
16
|
-
|
|
17
|
-
### files
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
readonly files: SyncFiles;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Defined in: [packages/project-config/src/index.ts:216](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/index.ts#L216)
|
|
24
|
-
|
|
25
|
-
***
|
|
26
|
-
|
|
27
|
-
### path
|
|
28
|
-
|
|
29
|
-
```ts
|
|
30
|
-
readonly path: Pick<Path, "resolve" | "join" | "dirname">;
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Defined in: [packages/project-config/src/index.ts:215](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/index.ts#L215)
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [index](../README.md) / SyncFiles
|
|
2
|
-
|
|
3
|
-
# Type Alias: SyncFiles
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
type SyncFiles = object;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/index.ts:202](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/index.ts#L202)
|
|
10
|
-
|
|
11
|
-
What reads a project's files synchronously, by their absolute paths.
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### files
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
readonly files: (folder) => ReadonlySet<string>;
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Defined in: [packages/project-config/src/index.ts:206](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/index.ts#L206)
|
|
22
|
-
|
|
23
|
-
The names of the files in `folder`, none when it is no folder.
|
|
24
|
-
|
|
25
|
-
#### Parameters
|
|
26
|
-
|
|
27
|
-
| Parameter | Type |
|
|
28
|
-
| ------ | ------ |
|
|
29
|
-
| `folder` | `string` |
|
|
30
|
-
|
|
31
|
-
#### Returns
|
|
32
|
-
|
|
33
|
-
`ReadonlySet`\<`string`\>
|
|
34
|
-
|
|
35
|
-
***
|
|
36
|
-
|
|
37
|
-
### text
|
|
38
|
-
|
|
39
|
-
```ts
|
|
40
|
-
readonly text: (path) => string | undefined;
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Defined in: [packages/project-config/src/index.ts:204](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/index.ts#L204)
|
|
44
|
-
|
|
45
|
-
The text of the file at `path`, or `undefined` when no file is there.
|
|
46
|
-
|
|
47
|
-
#### Parameters
|
|
48
|
-
|
|
49
|
-
| Parameter | Type |
|
|
50
|
-
| ------ | ------ |
|
|
51
|
-
| `path` | `string` |
|
|
52
|
-
|
|
53
|
-
#### Returns
|
|
54
|
-
|
|
55
|
-
`string` \| `undefined`
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [load](../README.md) / loadConfigSync
|
|
2
|
-
|
|
3
|
-
# Function: loadConfigSync()
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
function loadConfigSync(__namedParameters): ResolvedConfig;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/load.ts:215](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/load.ts#L215)
|
|
10
|
-
|
|
11
|
-
The configuration of the project in `folder`, the working folder of the platform by default, with
|
|
12
|
-
the environment of the platform over it, as [loadConfig](loadConfig.md) reads it, read synchronously:
|
|
13
|
-
of a JSON file of the names, `wtf.config.json` by default, or the key of package.json, `wtf` by
|
|
14
|
-
default, for a tool that loads its own config synchronously. A configuration of code in use, as
|
|
15
|
-
`wtf.config.ts`, is a [SyncConfigInCodeError](../../errors/classes/SyncConfigInCodeError.md), as importing it is asynchronous.
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
| Parameter | Type |
|
|
20
|
-
| ------ | ------ |
|
|
21
|
-
| `__namedParameters` | [`LoadSyncOptions`](../type-aliases/LoadSyncOptions.md) |
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
[`ResolvedConfig`](../../index/type-aliases/ResolvedConfig.md)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [load](../README.md) / LoadSyncOptions
|
|
2
|
-
|
|
3
|
-
# Type Alias: LoadSyncOptions
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
type LoadSyncOptions = LoadLayers & object;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/load.ts:104](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/load.ts#L104)
|
|
10
|
-
|
|
11
|
-
How a configuration is read synchronously.
|
|
12
|
-
|
|
13
|
-
## Type Declaration
|
|
14
|
-
|
|
15
|
-
| Name | Type | Description | Defined in |
|
|
16
|
-
| ------ | ------ | ------ | ------ |
|
|
17
|
-
| `platform` | [`LoadSyncPlatform`](LoadSyncPlatform.md) | The platform it is read by synchronously ([LoadSyncPlatform](LoadSyncPlatform.md)). | [packages/project-config/src/load.ts:106](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/load.ts#L106) |
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [load](../README.md) / LoadSyncPlatform
|
|
2
|
-
|
|
3
|
-
# Type Alias: LoadSyncPlatform
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
type LoadSyncPlatform = ConfigSyncPlatform & Pick<Platform, "env"> & object;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/load.ts:88](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/load.ts#L88)
|
|
10
|
-
|
|
11
|
-
What a configuration is read by synchronously: the platform's paths and its files, read
|
|
12
|
-
synchronously ([ConfigSyncPlatform](../../index/type-aliases/ConfigSyncPlatform.md)), its working folder, and its environment, as
|
|
13
|
-
[LoadPlatform](LoadPlatform.md) has them. `nodeSyncPlatform()` of ./node adds Node's files to a platform.
|
|
14
|
-
|
|
15
|
-
## Type Declaration
|
|
16
|
-
|
|
17
|
-
| Name | Type | Defined in |
|
|
18
|
-
| ------ | ------ | ------ |
|
|
19
|
-
| `dirs` | `Pick`\<`Dirs`, `"cwd"`\> | [packages/project-config/src/load.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/load.ts#L89) |
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [locate](../README.md) / locateConfigSync
|
|
2
|
-
|
|
3
|
-
# Function: locateConfigSync()
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
function locateConfigSync(folder, __namedParameters): LocatedConfig;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/locate.ts:206](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/locate.ts#L206)
|
|
10
|
-
|
|
11
|
-
Each file of the configuration of the project in `folder`, as [locateConfig](locateConfig.md) finds them,
|
|
12
|
-
read synchronously.
|
|
13
|
-
|
|
14
|
-
## Parameters
|
|
15
|
-
|
|
16
|
-
| Parameter | Type |
|
|
17
|
-
| ------ | ------ |
|
|
18
|
-
| `folder` | `string` |
|
|
19
|
-
| `__namedParameters` | [`LocateSyncOptions`](../type-aliases/LocateSyncOptions.md) |
|
|
20
|
-
|
|
21
|
-
## Returns
|
|
22
|
-
|
|
23
|
-
[`LocatedConfig`](../../index/type-aliases/LocatedConfig.md)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [locate](../README.md) / projectRootOfSync
|
|
2
|
-
|
|
3
|
-
# Function: projectRootOfSync()
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
function projectRootOfSync(folder, __namedParameters): string;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/locate.ts:186](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/locate.ts#L186)
|
|
10
|
-
|
|
11
|
-
The folder the configuration of the project in `folder` is looked for in, as
|
|
12
|
-
[projectRootOf](projectRootOf.md) finds it, read synchronously.
|
|
13
|
-
|
|
14
|
-
## Parameters
|
|
15
|
-
|
|
16
|
-
| Parameter | Type |
|
|
17
|
-
| ------ | ------ |
|
|
18
|
-
| `folder` | `string` |
|
|
19
|
-
| `__namedParameters` | `Pick`\<[`LocateSyncOptions`](../type-aliases/LocateSyncOptions.md), `"platform"`\> |
|
|
20
|
-
|
|
21
|
-
## Returns
|
|
22
|
-
|
|
23
|
-
`string`
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [locate](../README.md) / LocateSyncOptions
|
|
2
|
-
|
|
3
|
-
# Type Alias: LocateSyncOptions
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
type LocateSyncOptions = LocateNames & object;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/locate.ts:125](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/locate.ts#L125)
|
|
10
|
-
|
|
11
|
-
Where the configuration is looked for, synchronously, by the platform's files.
|
|
12
|
-
|
|
13
|
-
## Type Declaration
|
|
14
|
-
|
|
15
|
-
| Name | Type | Description | Defined in |
|
|
16
|
-
| ------ | ------ | ------ | ------ |
|
|
17
|
-
| `platform` | [`ConfigSyncPlatform`](../../index/type-aliases/ConfigSyncPlatform.md) | The platform it is read by synchronously, as `nodeSyncPlatform()` of ./node makes it. | [packages/project-config/src/locate.ts:127](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/locate.ts#L127) |
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../README.md) / [@wtf/project-config](../README.md) / node
|
|
2
|
-
|
|
3
|
-
# node
|
|
4
|
-
|
|
5
|
-
What of the configuration is Node's by nature: [nodeSyncPlatform](functions/nodeSyncPlatform.md), a platform's files read
|
|
6
|
-
synchronously, by `node:fs`, as no handle of the File System Standard reads them, for
|
|
7
|
-
`loadConfigSync` of ./load; and [nodeLoadModule](functions/nodeLoadModule.md), what loads a module a reference of
|
|
8
|
-
./named names, by Node's resolution and `import()`. Neither reads anything of the process: the
|
|
9
|
-
entry point gives the platform, and the root of the project:
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
13
|
-
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
14
|
-
|
|
15
|
-
import { loadConfigSync } from '@wtf/project-config/load'
|
|
16
|
-
import { nodeLoadModule, nodeSyncPlatform } from '@wtf/project-config/node'
|
|
17
|
-
|
|
18
|
-
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
19
|
-
const resolved = loadConfigSync({ platform: nodeSyncPlatform(platform) })
|
|
20
|
-
const load = nodeLoadModule(resolved.root, import.meta.url)
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Functions
|
|
24
|
-
|
|
25
|
-
- [nodeLoadModule](functions/nodeLoadModule.md)
|
|
26
|
-
- [nodeSyncPlatform](functions/nodeSyncPlatform.md)
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [node](../README.md) / nodeLoadModule
|
|
2
|
-
|
|
3
|
-
# Function: nodeLoadModule()
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
function nodeLoadModule(root, beside?): LoadModule;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/node.ts:114](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/node.ts#L114)
|
|
10
|
-
|
|
11
|
-
Node's loader of the modules a reference of ./named names, by `import()` of its file: a path, of
|
|
12
|
-
`root`, the root of the project, as the entry point gives it; a package, the one `root`
|
|
13
|
-
installs, else the one installed beside `beside`, as a tool gives its own `import.meta.url`, so a
|
|
14
|
-
package a global install puts beside the tool is found too. What fails to resolve or load fails
|
|
15
|
-
of the error of `root`'s resolve, or of the import.
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
import { nodeLoadModule } from '@wtf/project-config/node'
|
|
19
|
-
|
|
20
|
-
const load = nodeLoadModule(resolved.root, import.meta.url)
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Parameters
|
|
24
|
-
|
|
25
|
-
| Parameter | Type |
|
|
26
|
-
| ------ | ------ |
|
|
27
|
-
| `root` | `string` |
|
|
28
|
-
| `beside?` | `string` \| `URL` |
|
|
29
|
-
|
|
30
|
-
## Returns
|
|
31
|
-
|
|
32
|
-
[`LoadModule`](../../named/type-aliases/LoadModule.md)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [node](../README.md) / nodeSyncPlatform
|
|
2
|
-
|
|
3
|
-
# Function: nodeSyncPlatform()
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
function nodeSyncPlatform(__namedParameters): LoadSyncPlatform;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-config/src/node.ts:69](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/node.ts#L69)
|
|
10
|
-
|
|
11
|
-
The platform the configuration is read by synchronously, of `platform`: its paths, its working
|
|
12
|
-
folder and its environment, as they are, and the disk, read synchronously by `node:fs`, as its
|
|
13
|
-
files. `loadConfigSync` of ./load reads by it.
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type |
|
|
18
|
-
| ------ | ------ |
|
|
19
|
-
| `__namedParameters` | `Omit`\<[`LoadSyncPlatform`](../../load/type-aliases/LoadSyncPlatform.md), `"files"`\> |
|
|
20
|
-
|
|
21
|
-
## Returns
|
|
22
|
-
|
|
23
|
-
[`LoadSyncPlatform`](../../load/type-aliases/LoadSyncPlatform.md)
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-config](../../README.md) / [section](../README.md) / sectionOfSync
|
|
2
|
-
|
|
3
|
-
# Function: sectionOfSync()
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
function sectionOfSync<T>(
|
|
7
|
-
resolved,
|
|
8
|
-
name,
|
|
9
|
-
schema?
|
|
10
|
-
): T | undefined;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Defined in: [packages/project-config/src/section.ts:260](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-config/src/section.ts#L260)
|
|
14
|
-
|
|
15
|
-
The section `name` of the configuration, as [sectionOf](sectionOf.md) reads it, checked synchronously,
|
|
16
|
-
as a tool that reads its config synchronously reads it with `loadConfigSync` of ./load. A schema
|
|
17
|
-
that checks asynchronously is a [SyncSchemaError](../../errors/classes/SyncSchemaError.md).
|
|
18
|
-
|
|
19
|
-
## Type Parameters
|
|
20
|
-
|
|
21
|
-
| Type Parameter | Default type |
|
|
22
|
-
| ------ | ------ |
|
|
23
|
-
| `T` | `unknown` |
|
|
24
|
-
|
|
25
|
-
## Parameters
|
|
26
|
-
|
|
27
|
-
| Parameter | Type |
|
|
28
|
-
| ------ | ------ |
|
|
29
|
-
| `resolved` | [`ResolvedConfig`](../../index/type-aliases/ResolvedConfig.md) |
|
|
30
|
-
| `name` | `string` |
|
|
31
|
-
| `schema?` | [`SectionSchema`](../../index/type-aliases/SectionSchema.md)\<`T`\> |
|
|
32
|
-
|
|
33
|
-
## Returns
|
|
34
|
-
|
|
35
|
-
`T` \| `undefined`
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
[Documentation](../../../../README.md) / [@wtf/project-typedoc](../../README.md) / [config](../README.md) / RevisionSources
|
|
2
|
-
|
|
3
|
-
# Type Alias: RevisionSources
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
type RevisionSources = object;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/project-typedoc/src/config.ts:93](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-typedoc/src/config.ts#L93)
|
|
10
|
-
|
|
11
|
-
Where [gitRevisionOf](../functions/gitRevisionOf.md) reads the revision from.
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### argv
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
readonly argv: readonly string[];
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Defined in: [packages/project-typedoc/src/config.ts:95](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-typedoc/src/config.ts#L95)
|
|
22
|
-
|
|
23
|
-
The arguments of the run, which may hold `--gitRevision <ref>`.
|
|
24
|
-
|
|
25
|
-
***
|
|
26
|
-
|
|
27
|
-
### platform
|
|
28
|
-
|
|
29
|
-
```ts
|
|
30
|
-
readonly platform: Pick<ProcessPlatform, "spawn">;
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Defined in: [packages/project-typedoc/src/config.ts:97](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-typedoc/src/config.ts#L97)
|
|
34
|
-
|
|
35
|
-
The platform whose `spawn` runs git, which names the revision of HEAD.
|