polen 0.8.0-next.9 → 0.8.1-next.1
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/README.md +25 -0
- package/build/api/api.d.ts +3 -3
- package/build/api/api.js +3 -3
- package/build/api/builder/builder.d.ts +1 -1
- package/build/api/builder/builder.d.ts.map +1 -1
- package/build/api/builder/builder.js +12 -4
- package/build/api/builder/builder.js.map +1 -1
- package/build/api/builder/index.d.ts +1 -1
- package/build/api/builder/index.js +1 -1
- package/build/api/config/config.d.ts +4 -4
- package/build/api/config/config.js +4 -4
- package/build/api/config/configurator.d.ts +21 -4
- package/build/api/config/configurator.d.ts.map +1 -1
- package/build/api/config/configurator.js +6 -2
- package/build/api/config/configurator.js.map +1 -1
- package/build/api/config/define.d.ts +1 -1
- package/build/api/config/index.d.ts +1 -1
- package/build/api/config/index.js +1 -1
- package/build/api/config/load.d.ts +1 -1
- package/build/api/config/load.d.ts.map +1 -1
- package/build/api/config/load.js +71 -19
- package/build/api/config/load.js.map +1 -1
- package/build/api/config/merge.d.ts +1 -1
- package/build/api/config/merge.js +1 -1
- package/build/api/config/merge.js.map +1 -1
- package/build/api/config-resolver/config-resolver.d.ts +2 -2
- package/build/api/config-resolver/config-resolver.js +2 -2
- package/build/api/config-resolver/index.d.ts +1 -1
- package/build/api/config-resolver/index.js +1 -1
- package/build/api/config-resolver/resolve.d.ts +3 -3
- package/build/api/config-resolver/resolve.d.ts.map +1 -1
- package/build/api/config-resolver/resolve.js +8 -5
- package/build/api/config-resolver/resolve.js.map +1 -1
- package/build/api/config-resolver/vite.d.ts +2 -2
- package/build/api/config-resolver/vite.d.ts.map +1 -1
- package/build/api/config-resolver/vite.js +2 -2
- package/build/api/config-resolver/vite.js.map +1 -1
- package/build/api/index.d.ts +1 -1
- package/build/api/index.js +1 -1
- package/build/api/schema/data-sources/data-sources.d.ts +3 -3
- package/build/api/schema/data-sources/data-sources.js +3 -3
- package/build/api/schema/data-sources/index.d.ts +1 -1
- package/build/api/schema/data-sources/index.js +1 -1
- package/build/api/schema/data-sources/memory/memory.d.ts +1 -1
- package/build/api/schema/data-sources/memory/memory.js +2 -2
- package/build/api/schema/data-sources/memory/memory.js.map +1 -1
- package/build/api/schema/data-sources/schema-directory/file-name-expression/index.d.ts +1 -1
- package/build/api/schema/data-sources/schema-directory/file-name-expression/index.js +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.js +5 -5
- package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts +1 -1
- package/build/api/schema/data-sources/schema-file/schema-file.js +2 -2
- package/build/api/schema/data-sources/schema-file/schema-file.js.map +1 -1
- package/build/api/schema/index.d.ts +1 -1
- package/build/api/schema/index.js +1 -1
- package/build/api/schema/read.d.ts +2 -2
- package/build/api/schema/read.js +1 -1
- package/build/api/schema/schema.d.ts +3 -3
- package/build/api/schema/schema.d.ts.map +1 -1
- package/build/api/schema/schema.js +2 -2
- package/build/api/schema-augmentation/augmentations/description.d.ts +2 -2
- package/build/api/schema-augmentation/augmentations/description.d.ts.map +1 -1
- package/build/api/schema-augmentation/augmentations/description.js +1 -1
- package/build/api/schema-augmentation/index.d.ts +1 -1
- package/build/api/schema-augmentation/index.js +1 -1
- package/build/api/schema-augmentation/schema-augmentation.d.ts +2 -2
- package/build/api/schema-augmentation/schema-augmentation.d.ts.map +1 -1
- package/build/api/schema-augmentation/schema-augmentation.js +1 -1
- package/build/api/schema-augmentation/target.d.ts +1 -1
- package/build/api/schema-augmentation/target.d.ts.map +1 -1
- package/build/api/schema-augmentation/target.js +1 -1
- package/build/api/schema-augmentation/target.js.map +1 -1
- package/build/api/singletons/markdown/index.d.ts +1 -1
- package/build/api/singletons/markdown/index.js +1 -1
- package/build/api/vite/log-filters.d.ts +1 -1
- package/build/api/vite/log-filters.d.ts.map +1 -1
- package/build/api/vite/log-filters.js +1 -1
- package/build/api/vite/log-filters.js.map +1 -1
- package/build/api/vite/logger.d.ts +1 -1
- package/build/api/vite/logger.d.ts.map +1 -1
- package/build/api/vite/logger.js +21 -7
- package/build/api/vite/logger.js.map +1 -1
- package/build/api/vite/plugins/build.d.ts +2 -2
- package/build/api/vite/plugins/build.d.ts.map +1 -1
- package/build/api/vite/plugins/build.js +14 -6
- package/build/api/vite/plugins/build.js.map +1 -1
- package/build/api/vite/plugins/core.d.ts +3 -3
- package/build/api/vite/plugins/core.d.ts.map +1 -1
- package/build/api/vite/plugins/core.js +159 -208
- package/build/api/vite/plugins/core.js.map +1 -1
- package/build/api/vite/plugins/main.d.ts +2 -2
- package/build/api/vite/plugins/main.d.ts.map +1 -1
- package/build/api/vite/plugins/main.js +3 -3
- package/build/api/vite/plugins/pages-tree.d.ts +16 -0
- package/build/api/vite/plugins/pages-tree.d.ts.map +1 -0
- package/build/api/vite/plugins/pages-tree.js +152 -0
- package/build/api/vite/plugins/pages-tree.js.map +1 -0
- package/build/api/vite/plugins/serve.d.ts +2 -2
- package/build/api/vite/plugins/serve.d.ts.map +1 -1
- package/build/api/vite/plugins/serve.js +41 -26
- package/build/api/vite/plugins/serve.js.map +1 -1
- package/build/api/vite/vi.d.ts +2 -2
- package/build/api/vite/vi.d.ts.map +1 -1
- package/build/api/vite/vi.js +2 -2
- package/build/api/vite/vi.js.map +1 -1
- package/build/cli/_/self-contained-mode.d.ts +16 -0
- package/build/cli/_/self-contained-mode.d.ts.map +1 -0
- package/build/cli/_/self-contained-mode.js +58 -0
- package/build/cli/_/self-contained-mode.js.map +1 -0
- package/build/cli/commands/build.js +2 -2
- package/build/cli/commands/build.js.map +1 -1
- package/build/cli/commands/dev.js +3 -4
- package/build/cli/commands/dev.js.map +1 -1
- package/build/cli/commands/open.js +4 -4
- package/build/cli/commands/open.js.map +1 -1
- package/build/dep/graphql-inspector/index.d.ts +1 -1
- package/build/dep/graphql-inspector/index.js +1 -1
- package/build/dep/hono/hono.d.ts +1 -1
- package/build/dep/hono/hono.js +1 -1
- package/build/dep/hono/index.d.ts +1 -1
- package/build/dep/hono/index.js +1 -1
- package/build/dep/superjson/index.d.ts +1 -1
- package/build/dep/superjson/index.js +1 -1
- package/build/dep/tiny-globby/index.d.ts +1 -1
- package/build/dep/tiny-globby/index.js +1 -1
- package/build/dep/vite/index.d.ts +1 -1
- package/build/dep/vite/index.js +1 -1
- package/build/exports/index.d.ts +1 -1
- package/build/exports/index.js +1 -1
- package/build/exports/polen.d.ts +3 -3
- package/build/exports/polen.d.ts.map +1 -1
- package/build/exports/polen.js +3 -3
- package/build/exports/polen.js.map +1 -1
- package/build/lib/apple-touch-icon/index.d.ts +1 -1
- package/build/lib/apple-touch-icon/index.js +1 -1
- package/build/lib/debug/debug.d.ts +3 -3
- package/build/lib/debug/debug.d.ts.map +1 -1
- package/build/lib/debug/debug.js +39 -10
- package/build/lib/debug/debug.js.map +1 -1
- package/build/lib/debug/environment-variable.d.ts +2 -1
- package/build/lib/debug/environment-variable.d.ts.map +1 -1
- package/build/lib/debug/environment-variable.js +27 -7
- package/build/lib/debug/environment-variable.js.map +1 -1
- package/build/lib/debug/index.d.ts +1 -1
- package/build/lib/debug/index.js +1 -1
- package/build/lib/errors/ContextualAggregateError.d.ts +1 -1
- package/build/lib/errors/ContextualAggregateError.js +1 -1
- package/build/lib/errors/ContextualError.d.ts +1 -1
- package/build/lib/errors/ErrorInternal.d.ts +2 -2
- package/build/lib/errors/ErrorInternal.js +1 -1
- package/build/lib/errors/errors.d.ts +4 -4
- package/build/lib/errors/errors.js +4 -4
- package/build/lib/errors/index.d.ts +1 -1
- package/build/lib/errors/index.js +1 -1
- package/build/lib/errors/types.d.ts +1 -1
- package/build/lib/favicon/index.d.ts +1 -1
- package/build/lib/favicon/index.js +1 -1
- package/build/lib/file-router/diagnostic-reporter.d.ts +3 -0
- package/build/lib/file-router/diagnostic-reporter.d.ts.map +1 -0
- package/build/lib/file-router/diagnostic-reporter.js +18 -0
- package/build/lib/file-router/diagnostic-reporter.js.map +1 -0
- package/build/lib/file-router/file-router.d.ts +5 -3
- package/build/lib/file-router/file-router.d.ts.map +1 -1
- package/build/lib/file-router/file-router.js +5 -3
- package/build/lib/file-router/file-router.js.map +1 -1
- package/build/lib/file-router/index.d.ts +1 -1
- package/build/lib/file-router/index.js +1 -1
- package/build/lib/file-router/linter.d.ts +25 -2
- package/build/lib/file-router/linter.d.ts.map +1 -1
- package/build/lib/file-router/linter.js +44 -3
- package/build/lib/file-router/linter.js.map +1 -1
- package/build/lib/file-router/route.d.ts +1 -0
- package/build/lib/file-router/route.d.ts.map +1 -1
- package/build/lib/file-router/route.js +1 -1
- package/build/lib/file-router/route.js.map +1 -1
- package/build/lib/file-router/scan-tree.d.ts +20 -0
- package/build/lib/file-router/scan-tree.d.ts.map +1 -0
- package/build/lib/file-router/scan-tree.js +158 -0
- package/build/lib/file-router/scan-tree.js.map +1 -0
- package/build/lib/file-router/scan.d.ts +2 -2
- package/build/lib/file-router/scan.d.ts.map +1 -1
- package/build/lib/file-router/scan.js +26 -10
- package/build/lib/file-router/scan.js.map +1 -1
- package/build/lib/file-router/sidebar/index.d.ts +3 -0
- package/build/lib/file-router/sidebar/index.d.ts.map +1 -0
- package/build/lib/file-router/sidebar/index.js +4 -0
- package/build/lib/file-router/sidebar/index.js.map +1 -0
- package/build/lib/file-router/sidebar/sidebar-tree.d.ts +9 -0
- package/build/lib/file-router/sidebar/sidebar-tree.d.ts.map +1 -0
- package/build/lib/file-router/sidebar/sidebar-tree.js +85 -0
- package/build/lib/file-router/sidebar/sidebar-tree.js.map +1 -0
- package/build/lib/file-router/sidebar/types.d.ts +17 -0
- package/build/lib/file-router/sidebar/types.d.ts.map +1 -0
- package/build/lib/file-router/sidebar/types.js +2 -0
- package/build/lib/file-router/sidebar/types.js.map +1 -0
- package/build/lib/grafaid/_Nodes.d.ts +1 -1
- package/build/lib/grafaid/_Nodes.js +1 -1
- package/build/lib/grafaid/document/OperationTypeNode.d.ts +1 -1
- package/build/lib/grafaid/document/OperationTypeNode.js +1 -1
- package/build/lib/grafaid/document/kind.d.ts +1 -1
- package/build/lib/grafaid/document/kind.js +1 -1
- package/build/lib/grafaid/document.d.ts +4 -4
- package/build/lib/grafaid/document.js +6 -6
- package/build/lib/grafaid/grafaid.d.ts +4 -4
- package/build/lib/grafaid/grafaid.js +4 -4
- package/build/lib/grafaid/graphql.d.ts +2 -2
- package/build/lib/grafaid/graphql.js +2 -2
- package/build/lib/grafaid/http/__.d.ts +1 -1
- package/build/lib/grafaid/http/__.js +1 -1
- package/build/lib/grafaid/http/http.js +1 -1
- package/build/lib/grafaid/index.d.ts +1 -1
- package/build/lib/grafaid/index.js +1 -1
- package/build/lib/grafaid/schema/KindMap/_.d.ts +3 -3
- package/build/lib/grafaid/schema/KindMap/_.js +4 -4
- package/build/lib/grafaid/schema/KindMap/__.d.ts +2 -2
- package/build/lib/grafaid/schema/KindMap/__.js +1 -1
- package/build/lib/grafaid/schema/OperationType/__.d.ts +2 -2
- package/build/lib/grafaid/schema/OperationType/__.js +1 -1
- package/build/lib/grafaid/schema/RootDetails.d.ts +3 -3
- package/build/lib/grafaid/schema/RootDetails.js +2 -2
- package/build/lib/grafaid/schema/RootTypeMap.d.ts +2 -2
- package/build/lib/grafaid/schema/RootTypeMap.js +2 -2
- package/build/lib/grafaid/schema/nodes-like.d.ts +1 -1
- package/build/lib/grafaid/schema/nodes-like.js +1 -1
- package/build/lib/grafaid/schema/schema.d.ts +14 -14
- package/build/lib/grafaid/schema/schema.js +15 -15
- package/build/lib/grafaid/schema/type-kind-name.d.ts +1 -1
- package/build/lib/grafaid/schema/type-kind-name.js +1 -1
- package/build/lib/grafaid/schema/type.d.ts +1 -1
- package/build/lib/grafaid/schema/typeGuards.js +1 -1
- package/build/lib/grafaid-old/grafaid.d.ts +1 -1
- package/build/lib/grafaid-old/grafaid.js +1 -1
- package/build/lib/grafaid-old/index.d.ts +1 -1
- package/build/lib/grafaid-old/index.js +1 -1
- package/build/lib/graphql-change/graphql-change.d.ts +2 -2
- package/build/lib/graphql-change/graphql-change.d.ts.map +1 -1
- package/build/lib/graphql-change/graphql-change.js +1 -1
- package/build/lib/graphql-change/graphql-change.js.map +1 -1
- package/build/lib/graphql-change/index.d.ts +1 -1
- package/build/lib/graphql-change/index.js +1 -1
- package/build/lib/graphql-changeset/graphql-changeset.d.ts +2 -2
- package/build/lib/graphql-changeset/graphql-changeset.d.ts.map +1 -1
- package/build/lib/graphql-changeset/index.d.ts +1 -1
- package/build/lib/graphql-changeset/index.js +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts.map +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.js +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.js.map +1 -1
- package/build/lib/graphql-schema-loader/index.d.ts +1 -1
- package/build/lib/graphql-schema-loader/index.js +1 -1
- package/build/lib/hono-aid/hono-aid.d.ts +1 -1
- package/build/lib/hono-aid/hono-aid.d.ts.map +1 -1
- package/build/lib/hono-aid/index.d.ts +1 -1
- package/build/lib/hono-aid/index.js +1 -1
- package/build/lib/kit-temp.d.ts +6 -0
- package/build/lib/kit-temp.d.ts.map +1 -1
- package/build/lib/kit-temp.js +3 -0
- package/build/lib/kit-temp.js.map +1 -1
- package/build/lib/react-router-aid/get-paths-patterns.d.ts +1 -1
- package/build/lib/react-router-aid/get-paths-patterns.d.ts.map +1 -1
- package/build/lib/react-router-aid/index.d.ts +1 -1
- package/build/lib/react-router-aid/index.js +1 -1
- package/build/lib/react-router-aid/react-router-aid.d.ts +2 -2
- package/build/lib/react-router-aid/react-router-aid.d.ts.map +1 -1
- package/build/lib/react-router-aid/react-router-aid.js +1 -1
- package/build/lib/react-router-loader/react-router-loader.js +1 -1
- package/build/lib/stack-processor/index.d.ts +1 -1
- package/build/lib/stack-processor/index.js +1 -1
- package/build/lib/superjson-codec/codec.d.ts +1 -1
- package/build/lib/superjson-codec/codec.d.ts.map +1 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.d.ts +2 -2
- package/build/lib/superjson-codec/codecs/graphql-schema.d.ts.map +1 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.js +2 -2
- package/build/lib/superjson-codec/codecs/graphql-schema.js.map +1 -1
- package/build/lib/superjson-codec/exports.d.ts +2 -2
- package/build/lib/superjson-codec/exports.js +2 -2
- package/build/lib/superjson-codec/index.d.ts +1 -1
- package/build/lib/superjson-codec/index.js +1 -1
- package/build/lib/tree/index.d.ts +3 -0
- package/build/lib/tree/index.d.ts.map +1 -0
- package/build/lib/tree/index.js +2 -0
- package/build/lib/tree/index.js.map +1 -0
- package/build/lib/tree/tree.d.ts +62 -0
- package/build/lib/tree/tree.d.ts.map +1 -0
- package/build/lib/tree/tree.js +134 -0
- package/build/lib/tree/tree.js.map +1 -0
- package/build/lib/vite-plugin-config/vite-plugin-config.d.ts +1 -1
- package/build/lib/vite-plugin-config/vite-plugin-config.d.ts.map +1 -1
- package/build/lib/vite-plugin-mdx/index.d.ts +1 -1
- package/build/lib/vite-plugin-mdx/index.d.ts.map +1 -1
- package/build/lib/vite-plugin-mdx/index.js +1 -3
- package/build/lib/vite-plugin-mdx/index.js.map +1 -1
- package/build/lib/vite-plugin-mdx/vite-plugin-mdx.d.ts +22 -0
- package/build/lib/vite-plugin-mdx/vite-plugin-mdx.d.ts.map +1 -1
- package/build/lib/vite-plugin-mdx/vite-plugin-mdx.js +55 -71
- package/build/lib/vite-plugin-mdx/vite-plugin-mdx.js.map +1 -1
- package/build/lib/vite-plugins/index.d.ts +1 -1
- package/build/lib/vite-plugins/index.js +1 -1
- package/build/lib/vite-plugins/vite-plugins.d.ts +1 -1
- package/build/lib/vite-plugins/vite-plugins.js +1 -1
- package/build/lib/vite-virtual/debug.d.ts +3 -0
- package/build/lib/vite-virtual/debug.d.ts.map +1 -0
- package/build/lib/vite-virtual/debug.js +3 -0
- package/build/lib/vite-virtual/debug.js.map +1 -0
- package/build/lib/vite-virtual/hooks.d.ts +1 -1
- package/build/lib/vite-virtual/hooks.d.ts.map +1 -1
- package/build/lib/vite-virtual/identified-loader.d.ts +3 -3
- package/build/lib/vite-virtual/identified-loader.d.ts.map +1 -1
- package/build/lib/vite-virtual/identified-loader.js +2 -2
- package/build/lib/vite-virtual/identified-loader.js.map +1 -1
- package/build/lib/vite-virtual/identifier.js +1 -1
- package/build/lib/vite-virtual/index.d.ts +1 -1
- package/build/lib/vite-virtual/index.js +1 -1
- package/build/lib/vite-virtual/vite-virtual.d.ts +3 -3
- package/build/lib/vite-virtual/vite-virtual.js +3 -3
- package/build/package-paths.d.ts +7 -0
- package/build/package-paths.d.ts.map +1 -1
- package/build/package-paths.js +12 -1
- package/build/package-paths.js.map +1 -1
- package/build/project-data.d.ts +4 -20
- package/build/project-data.d.ts.map +1 -1
- package/build/singletons/debug.d.ts +3 -0
- package/build/singletons/debug.d.ts.map +1 -0
- package/build/singletons/debug.js +3 -0
- package/build/singletons/debug.js.map +1 -0
- package/build/singletons/superjson.d.ts +1 -1
- package/build/singletons/superjson.d.ts.map +1 -1
- package/build/singletons/superjson.js +2 -2
- package/build/singletons/superjson.js.map +1 -1
- package/build/template/components/ArgumentListAnnotation.jsx +1 -1
- package/build/template/components/ArgumentListAnnotation.jsx.map +1 -1
- package/build/template/components/Changelog.d.ts +1 -1
- package/build/template/components/Changelog.jsx +2 -2
- package/build/template/components/Changelog.jsx.map +1 -1
- package/build/template/components/DeprecationReason.d.ts +1 -1
- package/build/template/components/DeprecationReason.d.ts.map +1 -1
- package/build/template/components/Description.d.ts +1 -1
- package/build/template/components/Description.d.ts.map +1 -1
- package/build/template/components/Field.d.ts +1 -1
- package/build/template/components/Field.d.ts.map +1 -1
- package/build/template/components/Field.jsx +1 -1
- package/build/template/components/Field.jsx.map +1 -1
- package/build/template/components/FieldList.d.ts +1 -1
- package/build/template/components/FieldList.d.ts.map +1 -1
- package/build/template/components/FieldList.jsx +1 -1
- package/build/template/components/FieldList.jsx.map +1 -1
- package/build/template/components/FieldListSection.jsx +1 -1
- package/build/template/components/FieldListSection.jsx.map +1 -1
- package/build/template/components/Markdown.jsx +1 -1
- package/build/template/components/Markdown.jsx.map +1 -1
- package/build/template/components/Sidebar.d.ts +2 -2
- package/build/template/components/Sidebar.d.ts.map +1 -1
- package/build/template/components/Sidebar.jsx +11 -7
- package/build/template/components/Sidebar.jsx.map +1 -1
- package/build/template/components/TypeIndex.jsx +1 -1
- package/build/template/components/TypeIndex.jsx.map +1 -1
- package/build/template/components/graphql/type-kind-icon.d.ts +2 -2
- package/build/template/components/graphql/type-kind-icon.d.ts.map +1 -1
- package/build/template/components/graphql/type-kind-icon.jsx +1 -1
- package/build/template/components/graphql/type-link.d.ts +1 -1
- package/build/template/components/graphql/type-link.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.jsx +2 -2
- package/build/template/components/graphql/type-link.jsx.map +1 -1
- package/build/template/entry.client.jsx +1 -1
- package/build/template/entry.client.jsx.map +1 -1
- package/build/template/routes/changelog.d.ts +1 -1
- package/build/template/routes/changelog.jsx +2 -2
- package/build/template/routes/changelog.jsx.map +1 -1
- package/build/template/routes/index.d.ts +1 -1
- package/build/template/routes/index.d.ts.map +1 -1
- package/build/template/routes/index.jsx +1 -1
- package/build/template/routes/index.jsx.map +1 -1
- package/build/template/routes/reference.$type.$field.jsx +3 -3
- package/build/template/routes/reference.$type.$field.jsx.map +1 -1
- package/build/template/routes/reference.$type.jsx +2 -2
- package/build/template/routes/reference.$type.jsx.map +1 -1
- package/build/template/routes/reference.jsx +2 -2
- package/build/template/routes/reference.jsx.map +1 -1
- package/build/template/routes/root.d.ts +1 -1
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.jsx +3 -3
- package/build/template/routes/root.jsx.map +1 -1
- package/build/template/server/app.d.ts +1 -1
- package/build/template/server/app.d.ts.map +1 -1
- package/build/template/server/app.js +5 -4
- package/build/template/server/app.js.map +1 -1
- package/build/template/server/main.js +3 -3
- package/build/template/server/manifest.d.ts +1 -1
- package/build/template/server/manifest.d.ts.map +1 -1
- package/build/template/server/render-page.d.ts +1 -1
- package/build/template/server/render-page.d.ts.map +1 -1
- package/build/template/server/render-page.jsx +2 -2
- package/build/template/server/ssg/generate.d.ts +1 -1
- package/build/template/server/ssg/generate.d.ts.map +1 -1
- package/build/template/server/ssg/generate.js +3 -3
- package/build/template/server/ssg/generate.js.map +1 -1
- package/build/template/server/ssg/get-route-paths.js +2 -2
- package/build/template/server/ssg/get-route-paths.js.map +1 -1
- package/package.json +70 -54
- package/src/api/api.ts +3 -3
- package/src/api/builder/builder.ts +3 -3
- package/src/api/builder/index.ts +1 -1
- package/src/api/config/config.ts +4 -4
- package/src/api/config/configurator.ts +27 -5
- package/src/api/config/define.ts +1 -1
- package/src/api/config/index.ts +1 -1
- package/src/api/config/load.ts +74 -23
- package/src/api/config/merge.ts +2 -2
- package/src/api/config-resolver/config-resolver.ts +2 -2
- package/src/api/config-resolver/index.ts +1 -1
- package/src/api/config-resolver/resolve.ts +8 -5
- package/src/api/config-resolver/vite.ts +3 -3
- package/src/api/index.ts +1 -1
- package/src/api/schema/data-sources/data-sources.ts +3 -3
- package/src/api/schema/data-sources/index.ts +1 -1
- package/src/api/schema/data-sources/memory/memory.ts +4 -4
- package/src/api/schema/data-sources/schema-directory/file-name-expression/index.ts +1 -1
- package/src/api/schema/data-sources/schema-directory/schema-directory.ts +7 -7
- package/src/api/schema/data-sources/schema-file/schema-file.ts +4 -4
- package/src/api/schema/index.ts +1 -1
- package/src/api/schema/read.ts +2 -2
- package/src/api/schema/schema.ts +3 -3
- package/src/api/schema-augmentation/augmentations/description.ts +3 -3
- package/src/api/schema-augmentation/index.ts +1 -1
- package/src/api/schema-augmentation/schema-augmentation.ts +2 -2
- package/src/api/schema-augmentation/target.ts +1 -1
- package/src/api/singletons/markdown/index.ts +1 -1
- package/src/api/vite/log-filters.ts +1 -1
- package/src/api/vite/logger.ts +23 -7
- package/src/api/vite/plugins/build.ts +6 -6
- package/src/api/vite/plugins/core.ts +177 -245
- package/src/api/vite/plugins/main.ts +5 -5
- package/src/api/vite/plugins/pages-tree.ts +186 -0
- package/src/api/vite/plugins/serve.ts +52 -29
- package/src/api/vite/vi.ts +2 -2
- package/src/cli/_/self-contained-mode.ts +85 -0
- package/src/cli/commands/build.ts +2 -2
- package/src/cli/commands/dev.ts +3 -4
- package/src/cli/commands/open.ts +4 -4
- package/src/dep/graphql-inspector/index.ts +1 -1
- package/src/dep/hono/hono.ts +1 -1
- package/src/dep/hono/index.ts +1 -1
- package/src/dep/superjson/index.ts +1 -1
- package/src/dep/tiny-globby/index.ts +1 -1
- package/src/dep/vite/index.ts +1 -1
- package/src/exports/index.ts +1 -1
- package/src/exports/polen.ts +3 -3
- package/src/lib/apple-touch-icon/index.ts +1 -1
- package/src/lib/debug/debug.ts +45 -18
- package/src/lib/debug/environment-variable.ts +28 -7
- package/src/lib/debug/index.ts +1 -1
- package/src/lib/errors/ContextualAggregateError.ts +1 -1
- package/src/lib/errors/ContextualError.ts +1 -1
- package/src/lib/errors/ErrorInternal.ts +2 -2
- package/src/lib/errors/errors.ts +4 -4
- package/src/lib/errors/index.ts +1 -1
- package/src/lib/errors/types.ts +1 -1
- package/src/lib/favicon/index.ts +1 -1
- package/src/lib/file-router/diagnostic-reporter.ts +22 -0
- package/src/lib/file-router/file-router.ts +5 -3
- package/src/lib/file-router/index.test.ts +2 -2
- package/src/lib/file-router/index.ts +1 -1
- package/src/lib/file-router/linter.test.ts +115 -0
- package/src/lib/file-router/linter.ts +78 -4
- package/src/lib/file-router/route.ts +2 -1
- package/src/lib/file-router/scan-tree.test.ts +189 -0
- package/src/lib/file-router/scan-tree.ts +205 -0
- package/src/lib/file-router/scan.ts +27 -12
- package/src/lib/file-router/sidebar/index.ts +3 -0
- package/src/lib/file-router/sidebar/sidebar-tree.test.ts +123 -0
- package/src/lib/file-router/sidebar/sidebar-tree.ts +110 -0
- package/src/lib/file-router/sidebar/types.ts +19 -0
- package/src/lib/grafaid/_Nodes.ts +1 -1
- package/src/lib/grafaid/document/OperationTypeNode.ts +1 -1
- package/src/lib/grafaid/document/kind.ts +1 -1
- package/src/lib/grafaid/document.ts +6 -6
- package/src/lib/grafaid/grafaid.ts +4 -4
- package/src/lib/grafaid/graphql.ts +3 -3
- package/src/lib/grafaid/http/__.ts +1 -1
- package/src/lib/grafaid/http/http.ts +1 -1
- package/src/lib/grafaid/index.ts +1 -1
- package/src/lib/grafaid/schema/KindMap/_.ts +6 -6
- package/src/lib/grafaid/schema/KindMap/__.ts +2 -2
- package/src/lib/grafaid/schema/OperationType/__.ts +2 -2
- package/src/lib/grafaid/schema/RootDetails.ts +3 -3
- package/src/lib/grafaid/schema/RootTypeMap.ts +2 -2
- package/src/lib/grafaid/schema/nodes-like.ts +2 -2
- package/src/lib/grafaid/schema/schema.ts +15 -15
- package/src/lib/grafaid/schema/type-kind-name.ts +1 -1
- package/src/lib/grafaid/schema/type.ts +1 -1
- package/src/lib/grafaid/schema/typeGuards.ts +1 -1
- package/src/lib/grafaid-old/grafaid.ts +1 -1
- package/src/lib/grafaid-old/index.ts +1 -1
- package/src/lib/graphql-change/graphql-change.ts +2 -2
- package/src/lib/graphql-change/index.ts +1 -1
- package/src/lib/graphql-changeset/graphql-changeset.ts +2 -2
- package/src/lib/graphql-changeset/index.ts +1 -1
- package/src/lib/graphql-schema-loader/graphql-schema-loader.ts +1 -1
- package/src/lib/graphql-schema-loader/index.ts +1 -1
- package/src/lib/hono-aid/hono-aid.ts +1 -1
- package/src/lib/hono-aid/index.ts +1 -1
- package/src/lib/kit-temp.ts +10 -0
- package/src/lib/react-router-aid/get-paths-patterns.ts +1 -1
- package/src/lib/react-router-aid/index.ts +1 -1
- package/src/lib/react-router-aid/react-router-aid.ts +2 -2
- package/src/lib/react-router-loader/react-router-loader.ts +1 -1
- package/src/lib/stack-processor/index.ts +1 -1
- package/src/lib/superjson-codec/codec.ts +1 -1
- package/src/lib/superjson-codec/codecs/graphql-schema.ts +2 -2
- package/src/lib/superjson-codec/exports.ts +2 -2
- package/src/lib/superjson-codec/index.ts +1 -1
- package/src/lib/tree/index.ts +2 -0
- package/src/lib/tree/tree.test.ts +117 -0
- package/src/lib/tree/tree.ts +183 -0
- package/src/lib/vite-plugin-config/vite-plugin-config.ts +1 -1
- package/src/lib/vite-plugin-mdx/index.ts +1 -2
- package/src/lib/vite-plugin-mdx/vite-plugin-mdx.ts +80 -70
- package/src/lib/vite-plugins/index.ts +1 -1
- package/src/lib/vite-plugins/vite-plugins.ts +1 -1
- package/src/lib/vite-virtual/debug.ts +3 -0
- package/src/lib/vite-virtual/hooks.ts +1 -1
- package/src/lib/vite-virtual/identified-loader.ts +5 -5
- package/src/lib/vite-virtual/identifier.ts +1 -1
- package/src/lib/vite-virtual/index.ts +1 -1
- package/src/lib/vite-virtual/vite-virtual.ts +3 -3
- package/src/package-paths.ts +22 -1
- package/src/project-data.ts +4 -24
- package/src/singletons/debug.ts +3 -0
- package/src/singletons/superjson.ts +2 -2
- package/src/template/components/ArgumentListAnnotation.tsx +1 -1
- package/src/template/components/Changelog.tsx +6 -6
- package/src/template/components/DeprecationReason.tsx +1 -1
- package/src/template/components/Description.tsx +1 -1
- package/src/template/components/Field.tsx +1 -1
- package/src/template/components/FieldList.tsx +1 -1
- package/src/template/components/FieldListSection.tsx +1 -1
- package/src/template/components/Markdown.tsx +1 -1
- package/src/template/components/Sidebar.tsx +16 -11
- package/src/template/components/TypeIndex.tsx +1 -1
- package/src/template/components/graphql/type-kind-icon.tsx +3 -3
- package/src/template/components/graphql/type-kind-tokens.ts +1 -1
- package/src/template/components/graphql/type-link.tsx +2 -2
- package/src/template/entry.client.tsx +1 -1
- package/src/template/routes/changelog.tsx +2 -2
- package/src/template/routes/index.tsx +1 -1
- package/src/template/routes/reference.$type.$field.tsx +3 -3
- package/src/template/routes/reference.$type.tsx +2 -2
- package/src/template/routes/reference.tsx +2 -2
- package/src/template/routes/root.tsx +4 -5
- package/src/template/server/app.ts +6 -4
- package/src/template/server/main.ts +3 -3
- package/src/template/server/manifest.ts +1 -1
- package/src/template/server/render-page.tsx +4 -4
- package/src/template/server/ssg/generate.ts +4 -4
- package/src/template/server/ssg/get-route-paths.ts +2 -2
- package/build/lib/file-router/sidebar.d.ts +0 -2
- package/build/lib/file-router/sidebar.d.ts.map +0 -1
- package/build/lib/file-router/sidebar.js +0 -2
- package/build/lib/file-router/sidebar.js.map +0 -1
- package/src/lib/file-router/sidebar.ts +0 -0
@@ -0,0 +1,152 @@
|
|
1
|
+
import { polenVirtual } from '#api/vite/vi';
|
2
|
+
import { reportDiagnostics } from '#lib/file-router/diagnostic-reporter';
|
3
|
+
import { FileRouter } from '#lib/file-router/index';
|
4
|
+
import { ViteVirtual } from '#lib/vite-virtual/index';
|
5
|
+
import { debug } from '#singletons/debug';
|
6
|
+
import mdx from '@mdx-js/rollup';
|
7
|
+
import { Path, Str } from '@wollybeard/kit';
|
8
|
+
import remarkGfm from 'remark-gfm';
|
9
|
+
const _debug = debug.sub(`vite-plugin-pages-tree`);
|
10
|
+
export const viProjectPages = polenVirtual([`project`, `pages.jsx`], { allowPluginProcessing: true });
|
11
|
+
/**
|
12
|
+
* Pages plugin with tree support
|
13
|
+
*/
|
14
|
+
export const createPagesTreePlugin = ({ config, onPagesChange, onTreeChange }) => {
|
15
|
+
// State management
|
16
|
+
let pagesCache = null;
|
17
|
+
let treeCache = null;
|
18
|
+
// Helper functions
|
19
|
+
const scanPages = async () => {
|
20
|
+
if (!pagesCache) {
|
21
|
+
_debug(`Scanning pages - cache is null, loading fresh data`);
|
22
|
+
pagesCache = await FileRouter.scan({
|
23
|
+
dir: config.paths.project.absolute.pages,
|
24
|
+
glob: `**/*.{md,mdx}`,
|
25
|
+
});
|
26
|
+
_debug(`Found ${String(pagesCache.routes.length)} pages`);
|
27
|
+
}
|
28
|
+
else {
|
29
|
+
_debug(`Using cached pages`);
|
30
|
+
}
|
31
|
+
return pagesCache;
|
32
|
+
};
|
33
|
+
const scanTree = async () => {
|
34
|
+
if (!treeCache) {
|
35
|
+
_debug(`Scanning tree - cache is null, loading fresh data`);
|
36
|
+
const result = await FileRouter.scanTree({
|
37
|
+
dir: config.paths.project.absolute.pages,
|
38
|
+
glob: `**/*.{md,mdx}`,
|
39
|
+
});
|
40
|
+
treeCache = result.routeTree;
|
41
|
+
_debug(`Built route tree`);
|
42
|
+
}
|
43
|
+
else {
|
44
|
+
_debug(`Using cached tree`);
|
45
|
+
}
|
46
|
+
return treeCache;
|
47
|
+
};
|
48
|
+
const clearCache = () => {
|
49
|
+
_debug(`Clearing pages and tree cache`);
|
50
|
+
pagesCache = null;
|
51
|
+
treeCache = null;
|
52
|
+
};
|
53
|
+
const isPageFile = (file) => {
|
54
|
+
return (file.endsWith(`.md`) || file.endsWith(`.mdx`))
|
55
|
+
&& file.includes(config.paths.project.absolute.pages);
|
56
|
+
};
|
57
|
+
const generatePagesModule = (pagesScanResult) => {
|
58
|
+
const $ = {
|
59
|
+
pages: `pages`,
|
60
|
+
};
|
61
|
+
const s = Str.Builder();
|
62
|
+
s `export const ${$.pages} = []`;
|
63
|
+
// Generate imports and route objects
|
64
|
+
for (const route of pagesScanResult.routes) {
|
65
|
+
const filePathExp = Path.format(route.file.path.absolute);
|
66
|
+
const pathExp = FileRouter.routeToPathExpression(route);
|
67
|
+
const ident = Str.Case.camel(`page ` + Str.titlizeSlug(pathExp));
|
68
|
+
s `
|
69
|
+
import ${ident} from '${filePathExp}'
|
70
|
+
|
71
|
+
${$.pages}.push({
|
72
|
+
path: '${pathExp}',
|
73
|
+
Component: ${ident}
|
74
|
+
})
|
75
|
+
`;
|
76
|
+
}
|
77
|
+
return s.render();
|
78
|
+
};
|
79
|
+
return [
|
80
|
+
// Plugin 1: MDX Processing
|
81
|
+
{
|
82
|
+
enforce: `pre`,
|
83
|
+
...mdx({
|
84
|
+
jsxImportSource: `polen/react`,
|
85
|
+
remarkPlugins: [remarkGfm],
|
86
|
+
}),
|
87
|
+
},
|
88
|
+
// Plugin 2: Pages Management
|
89
|
+
{
|
90
|
+
name: `polen:pages-tree`,
|
91
|
+
// Dev server configuration
|
92
|
+
configureServer(server) {
|
93
|
+
// Add pages directory to watcher
|
94
|
+
_debug(`Adding pages directory to watcher:`, config.paths.project.absolute.pages);
|
95
|
+
server.watcher.add(config.paths.project.absolute.pages);
|
96
|
+
},
|
97
|
+
// Hot update handling
|
98
|
+
async handleHotUpdate({ file, server }) {
|
99
|
+
if (!isPageFile(file))
|
100
|
+
return;
|
101
|
+
_debug(`Page file changed:`, file);
|
102
|
+
// Clear cache
|
103
|
+
clearCache();
|
104
|
+
// Invalidate virtual module
|
105
|
+
const mod = server.moduleGraph.getModuleById(viProjectPages.resolved);
|
106
|
+
if (mod) {
|
107
|
+
server.moduleGraph.invalidateModule(mod);
|
108
|
+
_debug(`Invalidated pages virtual module`);
|
109
|
+
}
|
110
|
+
// Notify about pages change (for other plugins that depend on pages)
|
111
|
+
if (onPagesChange) {
|
112
|
+
const pages = await scanPages();
|
113
|
+
// Report any diagnostics
|
114
|
+
reportDiagnostics(pages.diagnostics);
|
115
|
+
onPagesChange(pages);
|
116
|
+
}
|
117
|
+
// Notify about tree change
|
118
|
+
if (onTreeChange) {
|
119
|
+
const tree = await scanTree();
|
120
|
+
onTreeChange(tree);
|
121
|
+
}
|
122
|
+
// Trigger full reload
|
123
|
+
server.ws.send({ type: `full-reload` });
|
124
|
+
return [];
|
125
|
+
},
|
126
|
+
// Virtual module handling
|
127
|
+
...ViteVirtual.IdentifiedLoader.toHooks({
|
128
|
+
identifier: viProjectPages,
|
129
|
+
async loader() {
|
130
|
+
_debug(`Loading viProjectPages virtual module`);
|
131
|
+
const pagesScanResult = await scanPages();
|
132
|
+
const tree = await scanTree();
|
133
|
+
// Report any diagnostics
|
134
|
+
reportDiagnostics(pagesScanResult.diagnostics);
|
135
|
+
// Notify about pages (useful for initial load)
|
136
|
+
onPagesChange?.(pagesScanResult);
|
137
|
+
onTreeChange?.(tree);
|
138
|
+
return generatePagesModule(pagesScanResult);
|
139
|
+
},
|
140
|
+
}),
|
141
|
+
},
|
142
|
+
];
|
143
|
+
};
|
144
|
+
// Helper to get tree
|
145
|
+
export const getRouteTree = async (config) => {
|
146
|
+
const result = await FileRouter.scanTree({
|
147
|
+
dir: config.paths.project.absolute.pages,
|
148
|
+
glob: `**/*.{md,mdx}`,
|
149
|
+
});
|
150
|
+
return result.routeTree;
|
151
|
+
};
|
152
|
+
//# sourceMappingURL=pages-tree.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pages-tree.js","sourceRoot":"","sources":["../../../../src/api/vite/plugins/pages-tree.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,GAAG,MAAM,gBAAgB,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,SAAS,MAAM,YAAY,CAAA;AAElC,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAA;AAQrG;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAA0B,EAChD,EAAE;IACjB,mBAAmB;IACnB,IAAI,UAAU,GAAiC,IAAI,CAAA;IACnD,IAAI,SAAS,GAAoC,IAAI,CAAA;IAErD,mBAAmB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BACtC,UAAU,EAAE,cAAc;gBAC1B,KAAK,CAAC,MAAM;oBACV,MAAM,CAAC,uCAAuC,CAAC,CAAA;oBAC/C,MAAM,eAAe,GAAG,MAAM,SAAS,EAAE,CAAA;oBACzC,MAAM,IAAI,GAAG,MAAM,QAAQ,EAAE,CAAA;oBAE7B,yBAAyB;oBACzB,iBAAiB,CAAC,eAAe,CAAC,WAAW,CAAC,CAAA;oBAE9C,+CAA+C;oBAC/C,aAAa,EAAE,CAAC,eAAe,CAAC,CAAA;oBAChC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAA;oBAEpB,OAAO,mBAAmB,CAAC,eAAe,CAAC,CAAA;gBAC7C,CAAC;aACF,CAAC;SACH;KACF,CAAA;AACH,CAAC,CAAA;AAED,qBAAqB;AACrB,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,MAAqB,EAAqC,EAAE;IAC7F,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,QAAQ,CAAC;QACvC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK;QACxC,IAAI,EAAE,eAAe;KACtB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,SAAS,CAAA;AACzB,CAAC,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Config } from '#api/config/index
|
2
|
-
import type { Vite } from '#dep/vite/index
|
1
|
+
import type { Config } from '#api/config/index';
|
2
|
+
import type { Vite } from '#dep/vite/index';
|
3
3
|
export declare const Serve: (config: Config.Config) => Vite.PluginOption;
|
4
4
|
//# sourceMappingURL=serve.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../../src/api/vite/plugins/serve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../../src/api/vite/plugins/serve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAW3C,eAAO,MAAM,KAAK,GAChB,QAAQ,MAAM,CAAC,MAAM,KACpB,IAAI,CAAC,YA+DP,CAAA"}
|
@@ -1,47 +1,62 @@
|
|
1
|
+
import { debug } from '#singletons/debug';
|
1
2
|
import * as HonoNodeServer from '@hono/node-server';
|
3
|
+
import { Err } from '@wollybeard/kit';
|
2
4
|
export const Serve = (config) => {
|
5
|
+
let appPromise;
|
6
|
+
const reloadApp = async ({ server }) => {
|
7
|
+
debug('reloadApp');
|
8
|
+
return await server.ssrLoadModule(config.paths.framework.template.server.app)
|
9
|
+
.then(module => module)
|
10
|
+
.then(module => module.app)
|
11
|
+
.catch(cause => {
|
12
|
+
if (Err.is(cause)) {
|
13
|
+
server.ssrFixStacktrace(cause);
|
14
|
+
}
|
15
|
+
throw cause;
|
16
|
+
});
|
17
|
+
};
|
3
18
|
return {
|
4
19
|
name: `polen:serve`,
|
5
20
|
apply: `serve`,
|
21
|
+
config() {
|
22
|
+
return {
|
23
|
+
server: {
|
24
|
+
port: 3000,
|
25
|
+
watch: {
|
26
|
+
disableGlobbing: false,
|
27
|
+
},
|
28
|
+
fs: {
|
29
|
+
strict: false, // bring back true, with the allow below might already work now
|
30
|
+
allow: [
|
31
|
+
config.paths.project.rootDir,
|
32
|
+
],
|
33
|
+
},
|
34
|
+
},
|
35
|
+
};
|
36
|
+
},
|
37
|
+
handleHotUpdate({ server }) {
|
38
|
+
// Reload app server immediately in the background
|
39
|
+
appPromise = reloadApp({ server });
|
40
|
+
},
|
6
41
|
async configureServer(server) {
|
7
|
-
|
8
|
-
|
9
|
-
const module = await server.ssrLoadModule(config.paths.framework.template.server.app);
|
10
|
-
honoApp = module.app;
|
11
|
-
}
|
12
|
-
catch (cause) {
|
13
|
-
if (cause instanceof Error) {
|
14
|
-
server.ssrFixStacktrace(cause);
|
15
|
-
}
|
16
|
-
throw cause;
|
17
|
-
}
|
18
|
-
// Add middleware that runs our entry server
|
42
|
+
// Initial load
|
43
|
+
appPromise = reloadApp({ server });
|
19
44
|
return () => {
|
20
45
|
// Remove index.html serving middleware.
|
21
46
|
server.middlewares.stack.splice(
|
22
47
|
// @ts-expect-error
|
23
48
|
server.middlewares.stack.findIndex(m => m.handle.name === `viteHtmlFallbackMiddleware`), 1);
|
49
|
+
// Add middleware that runs our entry server
|
24
50
|
server.middlewares.use((req, res, ___next) => {
|
25
51
|
void HonoNodeServer.getRequestListener(async (request) => {
|
26
|
-
//
|
27
|
-
const
|
52
|
+
// Always await the current app promise
|
53
|
+
const app = await appPromise;
|
54
|
+
const response = await app.fetch(request, { viteDevServer: server });
|
28
55
|
return response;
|
29
56
|
})(req, res);
|
30
57
|
});
|
31
58
|
};
|
32
59
|
},
|
33
|
-
config() {
|
34
|
-
return {
|
35
|
-
server: {
|
36
|
-
fs: {
|
37
|
-
strict: false,
|
38
|
-
allow: [
|
39
|
-
// todo allow from polen
|
40
|
-
],
|
41
|
-
},
|
42
|
-
},
|
43
|
-
};
|
44
|
-
},
|
45
60
|
};
|
46
61
|
};
|
47
62
|
//# sourceMappingURL=serve.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serve.js","sourceRoot":"","sources":["../../../../src/api/vite/plugins/serve.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;
|
1
|
+
{"version":3,"file":"serve.js","sourceRoot":"","sources":["../../../../src/api/vite/plugins/serve.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAQrC,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,MAAqB,EACF,EAAE;IACrB,IAAI,UAAwB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AC7B,mBAAmB;gBACnB,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,4BAA4B,CAAC,EACvF,CAAC,CACF,CAAA;gBAED,4CAA4C;gBAC5C,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;oBAC3C,KAAK,cAAc,CAAC,kBAAkB,CAAC,KAAK,EAAC,OAAO,EAAC,EAAE;wBACrD,uCAAuC;wBACvC,MAAM,GAAG,GAAG,MAAM,UAAU,CAAA;wBAC5B,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,CAAA;wBACpE,OAAO,QAAQ,CAAA;oBACjB,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;gBACd,CAAC,CAAC,CAAA;YACJ,CAAC,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC,CAAA"}
|
package/build/api/vite/vi.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import { ViteVirtual } from '#lib/vite-virtual/index
|
2
|
-
export declare const
|
1
|
+
import { ViteVirtual } from '#lib/vite-virtual/index';
|
2
|
+
export declare const polenVirtual: ViteVirtual.Identifier.Factory;
|
3
3
|
//# sourceMappingURL=vi.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vi.d.ts","sourceRoot":"","sources":["../../../src/api/vite/vi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"vi.d.ts","sourceRoot":"","sources":["../../../src/api/vite/vi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,eAAO,MAAM,YAAY,gCAEvB,CAAA"}
|
package/build/api/vite/vi.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ViteVirtual } from '#lib/vite-virtual/index
|
2
|
-
export const
|
1
|
+
import { ViteVirtual } from '#lib/vite-virtual/index';
|
2
|
+
export const polenVirtual = ViteVirtual.Identifier.createFactory({
|
3
3
|
namespace: `polen`,
|
4
4
|
});
|
5
5
|
//# sourceMappingURL=vi.js.map
|
package/build/api/vite/vi.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vi.js","sourceRoot":"","sources":["../../../src/api/vite/vi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"vi.js","sourceRoot":"","sources":["../../../src/api/vite/vi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC;IAC/D,SAAS,EAAE,OAAO;CACnB,CAAC,CAAA"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { Vite } from '#dep/vite/index';
|
2
|
+
import type * as Module from 'node:module';
|
3
|
+
export interface SelfContainedModeHooksData {
|
4
|
+
projectDirPathExp: string;
|
5
|
+
}
|
6
|
+
export declare function initialize(data: SelfContainedModeHooksData): void;
|
7
|
+
export declare const resolve: Module.ResolveHook;
|
8
|
+
export declare const checkIsSelfImportFromProject: (input: {
|
9
|
+
specifier: string;
|
10
|
+
importerPathExpOrFileUrlExp: string;
|
11
|
+
projectDirPathExp: string;
|
12
|
+
}) => boolean;
|
13
|
+
export declare const VitePluginSelfContainedMode: ({ projectDirPathExp }: {
|
14
|
+
projectDirPathExp: string;
|
15
|
+
}) => Vite.Plugin;
|
16
|
+
//# sourceMappingURL=self-contained-mode.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"self-contained-mode.d.ts","sourceRoot":"","sources":["../../../src/cli/_/self-contained-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAI3C,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAG1C,MAAM,WAAW,0BAA0B;IACzC,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAID,wBAAgB,UAAU,CAAC,IAAI,EAAE,0BAA0B,QAE1D;AAED,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,WAkC5B,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,OAAO;IAClD,SAAS,EAAE,MAAM,CAAA;IACjB,2BAA2B,EAAE,MAAM,CAAA;IACnC,iBAAiB,EAAE,MAAM,CAAA;CAC1B,KAAG,OAQH,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,uBAAuB;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,CAAC,MAiBvG,CAAA"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { isSpecifierFromPackage } from '#lib/kit-temp';
|
2
|
+
import { packagePaths } from '#package-paths';
|
3
|
+
import { debug } from '#singletons/debug';
|
4
|
+
import { fileURLToPath } from 'node:url';
|
5
|
+
let data_ = undefined;
|
6
|
+
export function initialize(data) {
|
7
|
+
data_ = data;
|
8
|
+
}
|
9
|
+
export const resolve = async (specifier, context, nextResolve) => {
|
10
|
+
if (!data_)
|
11
|
+
throw new Error(`Self-contained mode not initialized`);
|
12
|
+
const _debug = debug.sub(`node-module-hooks`);
|
13
|
+
const from = {
|
14
|
+
specifier,
|
15
|
+
context,
|
16
|
+
};
|
17
|
+
if (from.context.parentURL && checkIsSelfImportFromProject({
|
18
|
+
projectDirPathExp: data_.projectDirPathExp,
|
19
|
+
specifier,
|
20
|
+
importerPathExpOrFileUrlExp: from.context.parentURL,
|
21
|
+
})) {
|
22
|
+
_debug(`resolve check`, { specifier, context });
|
23
|
+
const to = {
|
24
|
+
specifier: from.specifier,
|
25
|
+
context: {
|
26
|
+
conditions: [...from.context.conditions, `source`],
|
27
|
+
parentURL: import.meta.url,
|
28
|
+
importAttributes: from.context.importAttributes,
|
29
|
+
},
|
30
|
+
};
|
31
|
+
_debug(`resolve`, { from, to });
|
32
|
+
await nextResolve(to.specifier, to.context);
|
33
|
+
}
|
34
|
+
return nextResolve(specifier, context);
|
35
|
+
};
|
36
|
+
export const checkIsSelfImportFromProject = (input) => {
|
37
|
+
// Not clear it would ever not be the case but we're being careful here.
|
38
|
+
// ...would be intersted to know if this is ever false.
|
39
|
+
const isImporterTheProject = input.importerPathExpOrFileUrlExp.includes(input.projectDirPathExp);
|
40
|
+
const isImportMe = isSpecifierFromPackage(input.specifier, packagePaths.name);
|
41
|
+
return isImporterTheProject && isImportMe;
|
42
|
+
};
|
43
|
+
export const VitePluginSelfContainedMode = ({ projectDirPathExp }) => {
|
44
|
+
const d = debug.sub(`vite-plugin:self-contained-import`);
|
45
|
+
return {
|
46
|
+
name: `polen:self-contained-import`,
|
47
|
+
resolveId(id, importer) {
|
48
|
+
const isSelfContainedImport = importer
|
49
|
+
&& checkIsSelfImportFromProject({ projectDirPathExp, specifier: id, importerPathExpOrFileUrlExp: importer });
|
50
|
+
if (!isSelfContainedImport)
|
51
|
+
return;
|
52
|
+
const to = fileURLToPath(import.meta.resolve(id));
|
53
|
+
d(`did resolve`, { from: id, to });
|
54
|
+
return to;
|
55
|
+
},
|
56
|
+
};
|
57
|
+
};
|
58
|
+
//# sourceMappingURL=self-contained-mode.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"self-contained-mode.js","sourceRoot":"","sources":["../../../src/cli/_/self-contained-mode.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,sBAAsB,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAMxC,I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,EAAE;IACZ,wEAAwE;IACxE,uDAAuD;IACvD,MAAM,oBAAoB,GAAG,KAAK,CAAC,2BAA2B,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;IAEhG,MAAM,UAAU,GAAG,sBAAsB,CAAC,KAAK,CAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;IAE7E,OAAO,oBAAoB,IAAI,UAAU,CAAA;AAC3C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EAAE,iBAAiB,EAAiC,EAAe,EAAE;IAC/G,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAA;IAExD,OAAO;QACL,IAAI,EAAE,6BAA6B;QACnC,SAAS,CAAC,EAAE,EAAE,QAAQ;YACpB,MAAM,qBAAqB,GAAG,QAAQ;mBACjC,4BAA4B,CAAC,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE,EAAE,2BAA2B,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC9G,IAAI,CAAC,qBAAqB;gBAAE,OAAM;YAElC,MAAM,EAAE,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;YAEjD,CAAC,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;YAElC,OAAO,EAAE,CAAA;QACX,CAAC;KACF,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/* eslint-disable */
|
2
2
|
// @ts-nocheck
|
3
|
-
import { Api } from '#api/index
|
4
|
-
import { Vite } from '#dep/vite/index
|
3
|
+
import { Api } from '#api/index';
|
4
|
+
import { Vite } from '#dep/vite/index';
|
5
5
|
import { Command } from '@molt/command';
|
6
6
|
import { z } from 'zod';
|
7
7
|
const args = Command.create()
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE;KAC1B,SAAS,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KACnD,SAAS,CACR,mBAAmB,EACnB,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,mDAAmD,CAAC,CAC1G;KACA,QAAQ,CAAC;IACR,UAAU,EAAE;QACV,WAAW,EAAE;YACX,QAAQ,EAAE;gBACR,oDAAoD;gBACpD,MAAM,EAAE,eAAe;gBACvB,OAAO,EAAE,KAAK;aACf;SACF;KACF;CACF,CAAC;KACD,KAAK,EAAE,CAAA;AAEV,QAAQ;AACR,OAAO;AACP,gEAAgE;AAChE,mFAAmF;AACnF,oHAAoH;AACpH,8HAA8H;AAC9H,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC;IACtB,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;IACtD,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC;CAC5E,CAAC,CAAA"}
|
@@ -1,12 +1,11 @@
|
|
1
1
|
/* eslint-disable */
|
2
2
|
// @ts-nocheck
|
3
|
-
import { Api } from '#api/index
|
4
|
-
import { Vite } from '#dep/vite/index
|
5
|
-
import { ensureOptionalAbsolute, ensureOptionalAbsoluteWithCwd } from '#lib/kit-temp
|
3
|
+
import { Api } from '#api/index';
|
4
|
+
import { Vite } from '#dep/vite/index';
|
5
|
+
import { ensureOptionalAbsolute, ensureOptionalAbsoluteWithCwd } from '#lib/kit-temp';
|
6
6
|
import { Command } from '@molt/command';
|
7
7
|
import { Err, Path } from '@wollybeard/kit';
|
8
8
|
import { z } from 'zod';
|
9
|
-
// import { loadConfig } from '../../api/load-config.js'
|
10
9
|
const args = Command.create()
|
11
10
|
.parameter(`--project -p`,
|
12
11
|
// @ts-expect-error
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../src/cli/commands/dev.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../src/cli/commands/dev.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE;KAC1B,SAAS,CACR,cAAc;AACd,mBAAmB;AACnB,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gFAAgF,CAAC,CACjH;KACA,QAAQ,CAAC;IACR,UAAU,EAAE;QACV,WAAW,EAAE;YACX,QAAQ,EAAE;gBACR,oDAAoD;gBACpD,MAAM,EAAE,YAAY;gBACpB,OAAO,EAAE,KAAK;aACf;SACF;KACF;CACF,CAAC;KACD,KAAK,EAAE,CAAA;AAEV,MAAM,GAAG,GAAG,6BAA6B,CAAC,IAAI,CAAC,OAAO,CAAW,CAAA;AAEjE,MAAM,cAAc,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,CAAA;AAEjE,MAAM,aAAa,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,CAAA;AAEjF,IAAI,GAAG,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;IAC1B,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACtB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC;AAED,MAAM,aAAa,CAAC,MAAM,EAAE,CAAA;AAE5B,aAAa,CAAC,SAAS,EAAE,CAAA"}
|
@@ -7,10 +7,10 @@
|
|
7
7
|
* polen open --introspect https://api.github.com/graphql --introspection-headers '{"Authorization": "Bearer $GITHUB_TOKEN"}'
|
8
8
|
* polen open --sdl https://docs.github.com/public/fpt/schema.docs.graphql
|
9
9
|
*/
|
10
|
-
import { Api } from '#api/index
|
11
|
-
import { Vite } from '#dep/vite/index
|
12
|
-
import { Grafaid } from '#lib/grafaid/index
|
13
|
-
import { GraphqlSchemaLoader } from '#lib/graphql-schema-loader/index
|
10
|
+
import { Api } from '#api/index';
|
11
|
+
import { Vite } from '#dep/vite/index';
|
12
|
+
import { Grafaid } from '#lib/grafaid/index';
|
13
|
+
import { GraphqlSchemaLoader } from '#lib/graphql-schema-loader/index';
|
14
14
|
import { Command } from '@molt/command';
|
15
15
|
import { Err, Fs, Json, Path, Rec } from '@wollybeard/kit';
|
16
16
|
import { homedir } from 'node:os';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../src/cli/commands/open.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc;AACd;;;;;;GAMG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../src/cli/commands/open.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc;AACd;;;;;;GAMG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE;KAC1B,SAAS,CACR,+BAA+B,EAC/B,CAAC;KACE,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,QAAQ,CACP,gHAAgH,CACjH,CACJ;KACA,mBAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACnC,CAAC,CAAC,SAAS,CAAC,sBAAsB,EAAE;IAClC,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,CACP,sEAAsE,CACvE;CACJ,CAAC;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Y,CAAC,IAAI,CAAC,oBAAoB,CAAC;gBACzC,CAAC,CAAC,SAAS;SACd,CACJ,CAAA;AAED,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC;IACjD,IAAI,EAAE,MAAM,EAAE,CAAC,sBAAsB,EAAE;IACvC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR;wBACE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK;wBAC5B,KAAK,EAAE,MAAM;wBACb,OAAO,EAAE,EAAE;wBACX,IAAI,EAAE,IAAI,IAAI,EAAE;qBACjB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;AAErD,MAAM,aAAa,CAAC,MAAM,EAAE,CAAA;AAE5B,aAAa,CAAC,SAAS,EAAE,CAAA"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as GraphqlInspector from './graphql-inspector.
|
1
|
+
export * as GraphqlInspector from './graphql-inspector.ts';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as GraphqlInspector from
|
1
|
+
export * as GraphqlInspector from "./graphql-inspector.js";
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/build/dep/hono/hono.d.ts
CHANGED
package/build/dep/hono/hono.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Hono from './hono.
|
1
|
+
export * as Hono from './hono.ts';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/build/dep/hono/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Hono from
|
1
|
+
export * as Hono from "./hono.js";
|
2
2
|
//# sourceMappingURL=index.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Superjson from './superjson.
|
1
|
+
export * as Superjson from './superjson.ts';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Superjson from
|
1
|
+
export * as Superjson from "./superjson.js";
|
2
2
|
//# sourceMappingURL=index.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as TinyGlobby from './tiny-globby.
|
1
|
+
export * as TinyGlobby from './tiny-globby.ts';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as TinyGlobby from
|
1
|
+
export * as TinyGlobby from "./tiny-globby.js";
|
2
2
|
//# sourceMappingURL=index.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Vite from './vite.
|
1
|
+
export * as Vite from './vite.ts';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/build/dep/vite/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Vite from
|
1
|
+
export * as Vite from "./vite.js";
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/build/exports/index.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Polen from './polen.
|
1
|
+
export * as Polen from './polen.ts';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/build/exports/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Polen from
|
1
|
+
export * as Polen from "./polen.js";
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/build/exports/polen.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { defineConfig } from '#api/config/config
|
2
|
-
export { type ConfigInput } from '#api/config/configurator
|
3
|
-
export { Main as VitePlugin } from '#api/vite/plugins/main
|
1
|
+
export { defineConfig } from '#api/config/config';
|
2
|
+
export { type ConfigInput } from '#api/config/configurator';
|
3
|
+
export { Main as VitePlugin } from '#api/vite/plugins/main';
|
4
4
|
//# sourceMappingURL=polen.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"polen.d.ts","sourceRoot":"","sources":["../../src/exports/polen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"polen.d.ts","sourceRoot":"","sources":["../../src/exports/polen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
|
package/build/exports/polen.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { defineConfig } from '#api/config/config
|
2
|
-
export {} from '#api/config/configurator
|
3
|
-
export { Main as VitePlugin } from '#api/vite/plugins/main
|
1
|
+
export { defineConfig } from '#api/config/config';
|
2
|
+
export {} from '#api/config/configurator';
|
3
|
+
export { Main as VitePlugin } from '#api/vite/plugins/main';
|
4
4
|
//# sourceMappingURL=polen.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"polen.js","sourceRoot":"","sources":["../../src/exports/polen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"polen.js","sourceRoot":"","sources":["../../src/exports/polen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAoB,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as AppleTouchIcon from './apple-touch-icon.
|
1
|
+
export * as AppleTouchIcon from './apple-touch-icon.ts';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as AppleTouchIcon from
|
1
|
+
export * as AppleTouchIcon from "./apple-touch-icon.js";
|
2
2
|
//# sourceMappingURL=index.js.map
|
@@ -2,12 +2,12 @@ type DebugParameters = [event: string, payload?: unknown];
|
|
2
2
|
export interface Debug {
|
3
3
|
(...args: DebugParameters): void;
|
4
4
|
toggle: (isEnabled: boolean) => void;
|
5
|
-
sub: (subNamespace: string) => Debug;
|
5
|
+
sub: (subNamespace: string | string[]) => Debug;
|
6
6
|
}
|
7
7
|
interface State {
|
8
8
|
isEnabled: boolean;
|
9
9
|
}
|
10
|
-
export declare const create: (
|
11
|
-
export declare const
|
10
|
+
export declare const create: (namespaceInput?: string | string[], initialState?: State) => Debug;
|
11
|
+
export declare const debugGlobal: Debug;
|
12
12
|
export {};
|
13
13
|
//# sourceMappingURL=debug.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/lib/debug/debug.ts"],"names":[],"mappings":"AAKA,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAA;AAEzD,MAAM,WAAW,KAAK;IACpB,CAAC,GAAG,IAAI,EAAE,eAAe,GAAG,IAAI,CAAA;IAChC,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,GAAG,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,KAAK,CAAA;
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/lib/debug/debug.ts"],"names":[],"mappings":"AAKA,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAA;AAEzD,MAAM,WAAW,KAAK;IACpB,CAAC,GAAG,IAAI,EAAE,eAAe,GAAG,IAAI,CAAA;IAChC,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,GAAG,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,KAAK,CAAA;CAChD;AAED,UAAU,KAAK;IACb,SAAS,EAAE,OAAO,CAAA;CACnB;AAgCD,eAAO,MAAM,MAAM,GAAI,iBAAiB,MAAM,GAAG,MAAM,EAAE,EAAE,eAAe,KAAK,KAAG,KA0DjF,CAAA;AAcD,eAAO,MAAM,WAAW,OAAW,CAAA"}
|