@wtf/project-docs 3.0.0 → 4.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 +0 -13
- 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/config/functions/gitRevisionOf.md +1 -1
- package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/RevisionSources.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 +8 -8
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +2 -2
- 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/type-aliases/TypedocSection.md +3 -3
- 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/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/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 +1 -1
- 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 +9 -9
- package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +4 -4
- 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/type-aliases/VitestSection.md +1 -1
- 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/guides/config.md +10 -34
- package/package.json +2 -2
- 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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type RunOptions = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/run.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/run.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L52)
|
|
10
10
|
|
|
11
11
|
How a test file runs.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ How a test file runs.
|
|
|
18
18
|
readonly files: Pick<WptFiles, "readFile" | "readBytes">;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-wpt/src/run.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-wpt/src/run.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L66)
|
|
22
22
|
|
|
23
23
|
The file system the checkout is read by.
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ The file system the checkout is read by.
|
|
|
30
30
|
readonly folder: string;
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/project-wpt/src/run.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
33
|
+
Defined in: [packages/project-wpt/src/run.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L68)
|
|
34
34
|
|
|
35
35
|
The folder of the checkout of the WPT, as ./checkout gives it.
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ The folder of the checkout of the WPT, as ./checkout gives it.
|
|
|
42
42
|
readonly optional globals?: (file) => Globals;
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Defined in: [packages/project-wpt/src/run.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
45
|
+
Defined in: [packages/project-wpt/src/run.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L70)
|
|
46
46
|
|
|
47
47
|
The globals the file's context has besides its built-ins: the implementation under test.
|
|
48
48
|
|
|
@@ -64,7 +64,7 @@ The globals the file's context has besides its built-ins: the implementation und
|
|
|
64
64
|
readonly platform: RunPlatform;
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
Defined in: [packages/project-wpt/src/run.ts:57](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
67
|
+
Defined in: [packages/project-wpt/src/run.ts:57](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L57)
|
|
68
68
|
|
|
69
69
|
The platform whose timers the file's timers, and the file's time, run by, and whose paths the
|
|
70
70
|
files of the checkout are of.
|
|
@@ -77,7 +77,7 @@ files of the checkout are of.
|
|
|
77
77
|
readonly realm: CreateRealm;
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
Defined in: [packages/project-wpt/src/run.ts:59](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
80
|
+
Defined in: [packages/project-wpt/src/run.ts:59](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L59)
|
|
81
81
|
|
|
82
82
|
Makes the realm the file runs in: in Node, `nodeRealm` of ./node, a `node:vm` context.
|
|
83
83
|
|
|
@@ -89,7 +89,7 @@ Makes the realm the file runs in: in Node, `nodeRealm` of ./node, a `node:vm` co
|
|
|
89
89
|
readonly rejections: HoldRejections;
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
Defined in: [packages/project-wpt/src/run.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
92
|
+
Defined in: [packages/project-wpt/src/run.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L64)
|
|
93
93
|
|
|
94
94
|
Gives a listener each rejection no one handles, until it is stopped: in Node,
|
|
95
95
|
`nodeRejections` of ./node.
|
|
@@ -102,6 +102,6 @@ Gives a listener each rejection no one handles, until it is stopped: in Node,
|
|
|
102
102
|
readonly optional timeout?: number;
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
Defined in: [packages/project-wpt/src/run.ts:72](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
105
|
+
Defined in: [packages/project-wpt/src/run.ts:72](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L72)
|
|
106
106
|
|
|
107
107
|
How long it may take, in milliseconds: [TIMEOUT](../variables/TIMEOUT.md), or [LONG\_TIMEOUT](../variables/LONG_TIMEOUT.md) if long.
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
type RunPlatform = Pick<WptPlatform, "setTimeout" | "clearTimeout" | "path">;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/run.ts:49](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/run.ts:49](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L49)
|
|
10
10
|
|
|
11
11
|
The members of the platform a run takes: its timers, and the paths of the checkout.
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
const LONG_TIMEOUT: 60000 = 60_000;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/run.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/run.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L46)
|
|
10
10
|
|
|
11
11
|
How long a file of `// META: timeout=long` may take, in milliseconds: six times as long.
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
const TIMEOUT: 10000 = 10_000;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/run.ts:43](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/run.ts:43](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L43)
|
|
10
10
|
|
|
11
11
|
How long a file may take, in milliseconds: 10 seconds, as the WPT gives one.
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
const WPT_ORIGIN: "http://web-platform.test:8000" = 'http://web-platform.test:8000';
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/run.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/run.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/run.ts#L40)
|
|
10
10
|
|
|
11
11
|
The origin a test file is at, as the WPT's server has it.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WptConfig = Pick<WptSuiteOptions, "commit" | "repository"> & object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/schema.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/schema.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/schema.ts#L64)
|
|
10
10
|
|
|
11
11
|
The suites of the WPT of a repo, as its configuration keeps them: the commit of the WPT its
|
|
12
12
|
tests are pinned to, its repository, and each suite's options by its name.
|
|
@@ -24,4 +24,4 @@ tests are pinned to, its repository, and each suite's options by its name.
|
|
|
24
24
|
|
|
25
25
|
| Name | Type | Description | Defined in |
|
|
26
26
|
| ------ | ------ | ------ | ------ |
|
|
27
|
-
| `suites?` | `Readonly`\<`Record`\<`string`, [`WptSuiteConfig`](WptSuiteConfig.md)\>\> | Each suite's options, by its name. | [packages/project-wpt/src/schema.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
27
|
+
| `suites?` | `Readonly`\<`Record`\<`string`, [`WptSuiteConfig`](WptSuiteConfig.md)\>\> | Each suite's options, by its name. | [packages/project-wpt/src/schema.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/schema.ts#L66) |
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WptSuiteConfig = WptPaths & Pick<WptSuiteOptions, "run" | "timeout"> & Partial<Pick<WptSuiteOptions, "commit" | "repository">> & object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/schema.ts:44](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/schema.ts:44](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/schema.ts#L44)
|
|
10
10
|
|
|
11
11
|
A suite's options, as a configuration keeps them, of `wptSuite()`'s that JSON holds: its tests,
|
|
12
12
|
what they fetch, the name of its run, the file of its expectations from the root of the project,
|
|
@@ -16,4 +16,4 @@ and how long a file may take. A suite of its own commit or repository gives them
|
|
|
16
16
|
|
|
17
17
|
| Name | Type | Description | Defined in |
|
|
18
18
|
| ------ | ------ | ------ | ------ |
|
|
19
|
-
| `expectations?` | `string` | The JSON file of the suite's known failures, by its path from the root of the project. | [packages/project-wpt/src/schema.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
19
|
+
| `expectations?` | `string` | The JSON file of the suite's known failures, by its path from the root of the project. | [packages/project-wpt/src/schema.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/schema.ts#L48) |
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const wptSchema: StandardSchemaV1<WptConfig> & StandardJSONSchemaV1<WptConfig>;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/schema.ts:128](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/schema.ts:128](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/schema.ts#L128)
|
|
10
10
|
|
|
11
11
|
The schema of a repo's suites of the WPT, [WptConfig](../type-aliases/WptConfig.md): the `commit` and the `repository`
|
|
12
12
|
of the WPT, and each suite's `files`, `dirs`, `resources`, `run`, `expectations` and `timeout`,
|
|
@@ -10,7 +10,7 @@ function wptSuite(
|
|
|
10
10
|
): void;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Defined in: [packages/project-wpt/src/suite.ts:107](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
13
|
+
Defined in: [packages/project-wpt/src/suite.ts:107](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L107)
|
|
14
14
|
|
|
15
15
|
A suite of the WPT, by its `name`: each test file of its `files` and `dirs`, at its `commit`,
|
|
16
16
|
run against the `globals` it maps in, each subtest a test, green when only what its
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type WptSuiteOptions = WptPaths & object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-wpt/src/suite.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-wpt/src/suite.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L62)
|
|
10
10
|
|
|
11
11
|
What a suite runs, and against what.
|
|
12
12
|
|
|
@@ -14,10 +14,10 @@ What a suite runs, and against what.
|
|
|
14
14
|
|
|
15
15
|
| Name | Type | Description | Defined in |
|
|
16
16
|
| ------ | ------ | ------ | ------ |
|
|
17
|
-
| `commit` | `string` | The commit of the WPT the suite's tests are pinned to, its full hash: what moves it is a change of the repo, reviewed. | [packages/project-wpt/src/suite.ts:67](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
18
|
-
| `expectations?` | \| `string` \| `URL` \| [`Expectations`](../../index/type-aliases/Expectations.md) | The known failures of the suite, or of its run: a JSON file, by its path from `root` or its URL, or the object; none by default. | [packages/project-wpt/src/suite.ts:84](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
19
|
-
| `globals()?` | (`file`) => [`Globals`](../../index/type-aliases/Globals.md) | The globals of each test file's context, over its built-ins: the implementation under test, made anew of each file. `undefined` of a name takes a built-in out. | [packages/project-wpt/src/suite.ts:74](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
20
|
-
| `repository?` | `string` | The git repository of the WPT, as a mirror: the WPT's own on GitHub by default. | [packages/project-wpt/src/suite.ts:69](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
-
| `root?` | `string` \| `URL` | The folder of the project, whose `node_modules/.cache/wpt` keeps the checkouts, and from which a path of `expectations` is read: the platform's working folder by default. | [packages/project-wpt/src/suite.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
22
|
-
| `run?` | `string` | The name of the run, of a suite run against more than one implementation, each a `wptSuite` of its own, each of its own `expectations`: `doubles`, `node`. Its tests are named by it. | [packages/project-wpt/src/suite.ts:79](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
23
|
-
| `timeout?` | `number` | How long each file may take, in milliseconds, in place of the WPT's 10 s, or 60 s if long. | [packages/project-wpt/src/suite.ts:91](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
17
|
+
| `commit` | `string` | The commit of the WPT the suite's tests are pinned to, its full hash: what moves it is a change of the repo, reviewed. | [packages/project-wpt/src/suite.ts:67](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L67) |
|
|
18
|
+
| `expectations?` | \| `string` \| `URL` \| [`Expectations`](../../index/type-aliases/Expectations.md) | The known failures of the suite, or of its run: a JSON file, by its path from `root` or its URL, or the object; none by default. | [packages/project-wpt/src/suite.ts:84](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L84) |
|
|
19
|
+
| `globals()?` | (`file`) => [`Globals`](../../index/type-aliases/Globals.md) | The globals of each test file's context, over its built-ins: the implementation under test, made anew of each file. `undefined` of a name takes a built-in out. | [packages/project-wpt/src/suite.ts:74](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L74) |
|
|
20
|
+
| `repository?` | `string` | The git repository of the WPT, as a mirror: the WPT's own on GitHub by default. | [packages/project-wpt/src/suite.ts:69](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L69) |
|
|
21
|
+
| `root?` | `string` \| `URL` | The folder of the project, whose `node_modules/.cache/wpt` keeps the checkouts, and from which a path of `expectations` is read: the platform's working folder by default. | [packages/project-wpt/src/suite.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L89) |
|
|
22
|
+
| `run?` | `string` | The name of the run, of a suite run against more than one implementation, each a `wptSuite` of its own, each of its own `expectations`: `doubles`, `node`. Its tests are named by it. | [packages/project-wpt/src/suite.ts:79](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L79) |
|
|
23
|
+
| `timeout?` | `number` | How long each file may take, in milliseconds, in place of the WPT's 10 s, or 60 s if long. | [packages/project-wpt/src/suite.ts:91](https://gitlab.com/wetryfun/project/project/-/blob/docs-v4.0.0/packages/project-wpt/src/suite.ts#L91) |
|
package/guides/config.md
CHANGED
|
@@ -109,30 +109,6 @@ modules and await what they export; oxlint and oxfmt import `oxlint.config.ts` a
|
|
|
109
109
|
default export; Astro loads `astro.config.mjs` as a module. A test file of the WPT is a module
|
|
110
110
|
Vitest awaits.
|
|
111
111
|
|
|
112
|
-
### A tool that reads its config synchronously
|
|
113
|
-
|
|
114
|
-
A tool that loads its own config file synchronously, or a function that must return at once,
|
|
115
|
-
cannot await the load. `loadConfigSync` and
|
|
116
|
-
`sectionOfSync` read a JSON file and package.json's key, and no code, as importing code is
|
|
117
|
-
asynchronous. A config of code in use is a `SyncConfigInCodeError`, which says to move it to JSON
|
|
118
|
-
or load it with `loadConfig`:
|
|
119
|
-
|
|
120
|
-
```ts
|
|
121
|
-
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
122
|
-
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
123
|
-
import { loadConfigSync } from '@wtf/project-config/load'
|
|
124
|
-
import { nodeSyncPlatform } from '@wtf/project-config/node'
|
|
125
|
-
import { sectionOfSync } from '@wtf/project-config/section'
|
|
126
|
-
import { typedocSchema } from '@wtf/project-typedoc/schema'
|
|
127
|
-
|
|
128
|
-
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
129
|
-
const config = loadConfigSync({ platform: nodeSyncPlatform(platform) })
|
|
130
|
-
const typedoc = sectionOfSync(config, 'typedoc', typedocSchema)
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
`nodeSyncPlatform(platform)` of `@wtf/project-config/node` adds the disk, read synchronously by
|
|
134
|
-
`node:fs`, to the platform's paths, working folder and environment.
|
|
135
|
-
|
|
136
112
|
## Override it from the environment
|
|
137
113
|
|
|
138
114
|
A variable `WTF_<SECTION>_<KEY>` sets a value of a section as it is read: `WTF_VITE_COMPRESS=false`
|
|
@@ -213,17 +189,18 @@ of a module too. The tool reads the option like this:
|
|
|
213
189
|
```ts
|
|
214
190
|
import {
|
|
215
191
|
factoryOf,
|
|
192
|
+
type LoadModule,
|
|
216
193
|
type NamedReference,
|
|
217
194
|
type NamedSet,
|
|
218
195
|
resolveNamed,
|
|
219
196
|
resolveNamedSet
|
|
220
197
|
} from '@wtf/project-config/named'
|
|
221
|
-
import { nodeLoadModule } from '@wtf/project-config/node'
|
|
222
198
|
|
|
223
199
|
type Format = { readonly width: number; readonly ellipsis: string }
|
|
224
200
|
declare const section: { formatters?: NamedSet<Format>[]; format: NamedReference }
|
|
225
|
-
//
|
|
226
|
-
|
|
201
|
+
// In Node: nodeLoadModule(root, import.meta.url) of @wtf/platform-node/module, of the root of the
|
|
202
|
+
// project, as `root` of the config `loadConfig` gives.
|
|
203
|
+
declare const load: LoadModule
|
|
227
204
|
|
|
228
205
|
const builtin = {
|
|
229
206
|
short: factoryOf<Format>({ width: 40, ellipsis: '…' }),
|
|
@@ -233,7 +210,7 @@ const builtin = {
|
|
|
233
210
|
})
|
|
234
211
|
}
|
|
235
212
|
const formatters = await resolveNamedSet<Format>([builtin, ...(section.formatters ?? [])], {
|
|
236
|
-
load
|
|
213
|
+
load
|
|
237
214
|
})
|
|
238
215
|
const format = await resolveNamed<Format>(section.format, {
|
|
239
216
|
key: 'format',
|
|
@@ -244,9 +221,10 @@ const format = await resolveNamed<Format>(section.format, {
|
|
|
244
221
|
```
|
|
245
222
|
|
|
246
223
|
`resolveNamedSet` loads every module of the sets at once, so a bad set fails before anything uses
|
|
247
|
-
it.
|
|
248
|
-
|
|
249
|
-
|
|
224
|
+
it. The loader, `load`, is a parameter, so the rest runs on any platform. In Node, pass
|
|
225
|
+
`nodeLoadModule(root, beside)` of `@wtf/platform-node/module`: it loads a path from `root`, and a
|
|
226
|
+
package that `root` installs; else it loads one installed beside `beside`, the tool's own
|
|
227
|
+
`import.meta.url`, as in a global install of the tool.
|
|
250
228
|
|
|
251
229
|
Pass `check`, a schema of the value, to check each value of a set and each value a reference
|
|
252
230
|
resolves to. A function entry is used as it is; pass `checkResults: true` as well, and `check`
|
|
@@ -278,7 +256,5 @@ it in the schema of your tool's section, or pass it to `sectionOf`.
|
|
|
278
256
|
Each function takes `namespace`, `files`, `key` and `env`, so a tool of its own can keep its
|
|
279
257
|
config under another name. `./load`, `./locate` and `./write` read through a platform you pass, a
|
|
280
258
|
`Platform` of `@wtf/platform`, whose storage is the root of a WHATWG File System, and the load
|
|
281
|
-
takes its environment, `env`, too
|
|
282
|
-
which `nodeSyncPlatform(platform)` of `./node` makes of Node's disk. No function reads the process,
|
|
283
|
-
nor defaults to Node's: the entry point builds the platform, as `nodePlatform()` of
|
|
259
|
+
takes its environment, `env`, too. No function reads the process, nor defaults to Node's: the entry point builds the platform, as `nodePlatform()` of
|
|
284
260
|
`@wtf/platform-node/platform` makes Node's, and a test passes one in memory.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wtf/project-docs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Guides and API reference for the @wtf/project packages: the shared TypeScript, oxlint, oxfmt, Vite, Vitest, TypeDoc and Astro configs of a pnpm workspace, the resolve hook that runs its TypeScript from source, the runner of the Web Platform Tests, the Astro integrations that make a site serve on GitLab Pages, and the loader of a project's wtf configuration.",
|
|
5
5
|
"homepage": "https://gitlab.com/wetryfun/project/project/-/tree/main/packages/project-docs",
|
|
6
6
|
"bugs": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@wtf/project-astro": "3.0.0",
|
|
40
|
-
"@wtf/project-config": "
|
|
40
|
+
"@wtf/project-config": "3.0.0",
|
|
41
41
|
"@wtf/project-oxfmt": "1.1.1",
|
|
42
42
|
"@wtf/project-oxlint": "1.1.1",
|
|
43
43
|
"@wtf/project-resolve": "1.0.0",
|
|
@@ -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) |
|