@powerlines/core 0.48.26 → 0.48.28
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/dist/_virtual/_rolldown/runtime.cjs +14 -0
- package/dist/_virtual/_rolldown/runtime.mjs +26 -0
- package/dist/constants/api.test.cjs +42 -0
- package/dist/constants/api.test.d.cts +1 -0
- package/dist/constants/api.test.d.mts +2 -0
- package/dist/constants/api.test.mjs +44 -0
- package/dist/constants/api.test.mjs.map +1 -0
- package/dist/constants/commands.test.cjs +29 -0
- package/dist/constants/commands.test.d.cts +1 -0
- package/dist/constants/commands.test.d.mts +2 -0
- package/dist/constants/commands.test.mjs +31 -0
- package/dist/constants/commands.test.mjs.map +1 -0
- package/dist/constants/devtools.test.cjs +46 -0
- package/dist/constants/devtools.test.d.cts +1 -0
- package/dist/constants/devtools.test.d.mts +2 -0
- package/dist/constants/devtools.test.mjs +48 -0
- package/dist/constants/devtools.test.mjs.map +1 -0
- package/dist/constants/environments.test.cjs +34 -0
- package/dist/constants/environments.test.d.cts +1 -0
- package/dist/constants/environments.test.d.mts +2 -0
- package/dist/constants/environments.test.mjs +36 -0
- package/dist/constants/environments.test.mjs.map +1 -0
- package/dist/constants/extensions.test.cjs +35 -0
- package/dist/constants/extensions.test.d.cts +1 -0
- package/dist/constants/extensions.test.d.mts +2 -0
- package/dist/constants/extensions.test.mjs +37 -0
- package/dist/constants/extensions.test.mjs.map +1 -0
- package/dist/constants/fs.test.cjs +34 -0
- package/dist/constants/fs.test.d.cts +1 -0
- package/dist/constants/fs.test.d.mts +2 -0
- package/dist/constants/fs.test.mjs +36 -0
- package/dist/constants/fs.test.mjs.map +1 -0
- package/dist/constants/hooks.test.cjs +29 -0
- package/dist/constants/hooks.test.d.cts +1 -0
- package/dist/constants/hooks.test.d.mts +2 -0
- package/dist/constants/hooks.test.mjs +31 -0
- package/dist/constants/hooks.test.mjs.map +1 -0
- package/dist/constants/log-level.test.cjs +76 -0
- package/dist/constants/log-level.test.d.cts +1 -0
- package/dist/constants/log-level.test.d.mts +2 -0
- package/dist/constants/log-level.test.mjs +78 -0
- package/dist/constants/log-level.test.mjs.map +1 -0
- package/dist/constants/meta.test.cjs +33 -0
- package/dist/constants/meta.test.d.cts +1 -0
- package/dist/constants/meta.test.d.mts +2 -0
- package/dist/constants/meta.test.mjs +35 -0
- package/dist/constants/meta.test.mjs.map +1 -0
- package/dist/constants/plugin.test.cjs +59 -0
- package/dist/constants/plugin.test.d.cts +1 -0
- package/dist/constants/plugin.test.d.mts +2 -0
- package/dist/constants/plugin.test.mjs +61 -0
- package/dist/constants/plugin.test.mjs.map +1 -0
- package/dist/context/base-context.cjs +8 -1
- package/dist/context/base-context.d.cts.map +1 -1
- package/dist/context/base-context.d.mts.map +1 -1
- package/dist/context/base-context.mjs +3 -1
- package/dist/context/base-context.mjs.map +1 -1
- package/dist/context/base-context.test.cjs +23 -0
- package/dist/context/base-context.test.d.cts +1 -0
- package/dist/context/base-context.test.d.mts +2 -0
- package/dist/context/base-context.test.mjs +25 -0
- package/dist/context/base-context.test.mjs.map +1 -0
- package/dist/context/context.cjs +8 -1
- package/dist/context/context.d.cts.map +1 -1
- package/dist/context/context.d.mts.map +1 -1
- package/dist/context/context.mjs +3 -1
- package/dist/context/context.mjs.map +1 -1
- package/dist/context/context.test.cjs +23 -0
- package/dist/context/context.test.d.cts +1 -0
- package/dist/context/context.test.d.mts +2 -0
- package/dist/context/context.test.mjs +25 -0
- package/dist/context/context.test.mjs.map +1 -0
- package/dist/context/environment-context.cjs +9 -1
- package/dist/context/environment-context.d.cts.map +1 -1
- package/dist/context/environment-context.d.mts.map +1 -1
- package/dist/context/environment-context.mjs +3 -1
- package/dist/context/environment-context.mjs.map +1 -1
- package/dist/context/environment-context.test.cjs +23 -0
- package/dist/context/environment-context.test.d.cts +1 -0
- package/dist/context/environment-context.test.d.mts +2 -0
- package/dist/context/environment-context.test.mjs +25 -0
- package/dist/context/environment-context.test.mjs.map +1 -0
- package/dist/context/execution-context.cjs +8 -1
- package/dist/context/execution-context.d.cts.map +1 -1
- package/dist/context/execution-context.d.mts.map +1 -1
- package/dist/context/execution-context.mjs +3 -1
- package/dist/context/execution-context.mjs.map +1 -1
- package/dist/context/execution-context.test.cjs +23 -0
- package/dist/context/execution-context.test.d.cts +1 -0
- package/dist/context/execution-context.test.d.mts +2 -0
- package/dist/context/execution-context.test.mjs +25 -0
- package/dist/context/execution-context.test.mjs.map +1 -0
- package/dist/context/plugin-context.cjs +9 -1
- package/dist/context/plugin-context.d.cts.map +1 -1
- package/dist/context/plugin-context.d.mts.map +1 -1
- package/dist/context/plugin-context.mjs +3 -1
- package/dist/context/plugin-context.mjs.map +1 -1
- package/dist/context/plugin-context.test.cjs +23 -0
- package/dist/context/plugin-context.test.d.cts +1 -0
- package/dist/context/plugin-context.test.d.mts +2 -0
- package/dist/context/plugin-context.test.mjs +25 -0
- package/dist/context/plugin-context.test.mjs.map +1 -0
- package/dist/lib/config.cjs +18 -0
- package/dist/lib/config.mjs +14 -1
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/config.test.cjs +23 -0
- package/dist/lib/config.test.d.cts +1 -0
- package/dist/lib/config.test.d.mts +2 -0
- package/dist/lib/config.test.mjs +25 -0
- package/dist/lib/config.test.mjs.map +1 -0
- package/dist/lib/context-helpers.cjs +11 -0
- package/dist/lib/context-helpers.d.cts +4 -4
- package/dist/lib/context-helpers.d.cts.map +1 -1
- package/dist/lib/context-helpers.d.mts +4 -4
- package/dist/lib/context-helpers.d.mts.map +1 -1
- package/dist/lib/context-helpers.mjs +6 -1
- package/dist/lib/context-helpers.mjs.map +1 -1
- package/dist/lib/context-helpers.test.cjs +23 -0
- package/dist/lib/context-helpers.test.d.cts +1 -0
- package/dist/lib/context-helpers.test.d.mts +2 -0
- package/dist/lib/context-helpers.test.mjs +25 -0
- package/dist/lib/context-helpers.test.mjs.map +1 -0
- package/dist/lib/entry.cjs +16 -0
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts.map +1 -1
- package/dist/lib/entry.mjs +11 -1
- package/dist/lib/entry.mjs.map +1 -1
- package/dist/lib/entry.test.cjs +23 -0
- package/dist/lib/entry.test.d.cts +1 -0
- package/dist/lib/entry.test.d.mts +2 -0
- package/dist/lib/entry.test.mjs +25 -0
- package/dist/lib/entry.test.mjs.map +1 -0
- package/dist/lib/environment.cjs +12 -0
- package/dist/lib/environment.d.cts.map +1 -1
- package/dist/lib/environment.d.mts.map +1 -1
- package/dist/lib/environment.mjs +8 -1
- package/dist/lib/environment.mjs.map +1 -1
- package/dist/lib/environment.test.cjs +23 -0
- package/dist/lib/environment.test.d.cts +1 -0
- package/dist/lib/environment.test.d.mts +2 -0
- package/dist/lib/environment.test.mjs +25 -0
- package/dist/lib/environment.test.mjs.map +1 -0
- package/dist/lib/events.cjs +9 -1
- package/dist/lib/events.d.cts.map +1 -1
- package/dist/lib/events.d.mts.map +1 -1
- package/dist/lib/events.mjs +4 -1
- package/dist/lib/events.mjs.map +1 -1
- package/dist/lib/events.test.cjs +23 -0
- package/dist/lib/events.test.d.cts +1 -0
- package/dist/lib/events.test.d.mts +2 -0
- package/dist/lib/events.test.mjs +25 -0
- package/dist/lib/events.test.mjs.map +1 -0
- package/dist/lib/generate-types.cjs +12 -0
- package/dist/lib/generate-types.d.cts.map +1 -1
- package/dist/lib/generate-types.d.mts.map +1 -1
- package/dist/lib/generate-types.mjs +7 -1
- package/dist/lib/generate-types.mjs.map +1 -1
- package/dist/lib/generate-types.test.cjs +23 -0
- package/dist/lib/generate-types.test.d.cts +1 -0
- package/dist/lib/generate-types.test.d.mts +2 -0
- package/dist/lib/generate-types.test.mjs +25 -0
- package/dist/lib/generate-types.test.mjs.map +1 -0
- package/dist/lib/hooks.cjs +12 -0
- package/dist/lib/hooks.d.cts.map +1 -1
- package/dist/lib/hooks.d.mts.map +1 -1
- package/dist/lib/hooks.mjs +8 -1
- package/dist/lib/hooks.mjs.map +1 -1
- package/dist/lib/hooks.test.cjs +23 -0
- package/dist/lib/hooks.test.d.cts +1 -0
- package/dist/lib/hooks.test.d.mts +2 -0
- package/dist/lib/hooks.test.mjs +25 -0
- package/dist/lib/hooks.test.mjs.map +1 -0
- package/dist/lib/install-dependencies.cjs +9 -1
- package/dist/lib/install-dependencies.d.cts.map +1 -1
- package/dist/lib/install-dependencies.d.mts.map +1 -1
- package/dist/lib/install-dependencies.mjs +3 -1
- package/dist/lib/install-dependencies.mjs.map +1 -1
- package/dist/lib/install-dependencies.test.cjs +23 -0
- package/dist/lib/install-dependencies.test.d.cts +1 -0
- package/dist/lib/install-dependencies.test.d.mts +2 -0
- package/dist/lib/install-dependencies.test.mjs +25 -0
- package/dist/lib/install-dependencies.test.mjs.map +1 -0
- package/dist/lib/meta.test.cjs +35 -0
- package/dist/lib/meta.test.d.cts +1 -0
- package/dist/lib/meta.test.d.mts +2 -0
- package/dist/lib/meta.test.mjs +37 -0
- package/dist/lib/meta.test.mjs.map +1 -0
- package/dist/lib/plugins.cjs +11 -0
- package/dist/lib/plugins.d.cts.map +1 -1
- package/dist/lib/plugins.d.mts.map +1 -1
- package/dist/lib/plugins.mjs +7 -1
- package/dist/lib/plugins.mjs.map +1 -1
- package/dist/lib/plugins.test.cjs +23 -0
- package/dist/lib/plugins.test.d.cts +1 -0
- package/dist/lib/plugins.test.d.mts +2 -0
- package/dist/lib/plugins.test.mjs +25 -0
- package/dist/lib/plugins.test.mjs.map +1 -0
- package/dist/lib/resolver.cjs +8 -1
- package/dist/lib/resolver.mjs +3 -1
- package/dist/lib/resolver.mjs.map +1 -1
- package/dist/lib/resolver.test.cjs +23 -0
- package/dist/lib/resolver.test.d.cts +1 -0
- package/dist/lib/resolver.test.d.mts +2 -0
- package/dist/lib/resolver.test.mjs +25 -0
- package/dist/lib/resolver.test.mjs.map +1 -0
- package/dist/lib/streaming-channel.cjs +12 -1
- package/dist/lib/streaming-channel.d.cts.map +1 -1
- package/dist/lib/streaming-channel.d.mts.map +1 -1
- package/dist/lib/streaming-channel.mjs +6 -1
- package/dist/lib/streaming-channel.mjs.map +1 -1
- package/dist/lib/streaming-channel.test.cjs +23 -0
- package/dist/lib/streaming-channel.test.d.cts +1 -0
- package/dist/lib/streaming-channel.test.d.mts +2 -0
- package/dist/lib/streaming-channel.test.mjs +25 -0
- package/dist/lib/streaming-channel.test.mjs.map +1 -0
- package/dist/lib/typescript/ts-morph.cjs +11 -1
- package/dist/lib/typescript/ts-morph.d.cts.map +1 -1
- package/dist/lib/typescript/ts-morph.d.mts.map +1 -1
- package/dist/lib/typescript/ts-morph.mjs +6 -1
- package/dist/lib/typescript/ts-morph.mjs.map +1 -1
- package/dist/lib/typescript/ts-morph.test.cjs +23 -0
- package/dist/lib/typescript/ts-morph.test.d.cts +1 -0
- package/dist/lib/typescript/ts-morph.test.d.mts +2 -0
- package/dist/lib/typescript/ts-morph.test.mjs +25 -0
- package/dist/lib/typescript/ts-morph.test.mjs.map +1 -0
- package/dist/lib/typescript/tsconfig.cjs +19 -1
- package/dist/lib/typescript/tsconfig.d.cts.map +1 -1
- package/dist/lib/typescript/tsconfig.d.mts.map +1 -1
- package/dist/lib/typescript/tsconfig.mjs +14 -1
- package/dist/lib/typescript/tsconfig.mjs.map +1 -1
- package/dist/lib/typescript/tsconfig.test.cjs +23 -0
- package/dist/lib/typescript/tsconfig.test.d.cts +1 -0
- package/dist/lib/typescript/tsconfig.test.d.mts +2 -0
- package/dist/lib/typescript/tsconfig.test.mjs +25 -0
- package/dist/lib/typescript/tsconfig.test.mjs.map +1 -0
- package/dist/lib/unplugin/helpers.cjs +11 -0
- package/dist/lib/unplugin/helpers.d.cts.map +1 -1
- package/dist/lib/unplugin/helpers.d.mts.map +1 -1
- package/dist/lib/unplugin/helpers.mjs +6 -1
- package/dist/lib/unplugin/helpers.mjs.map +1 -1
- package/dist/lib/unplugin/helpers.test.cjs +23 -0
- package/dist/lib/unplugin/helpers.test.d.cts +1 -0
- package/dist/lib/unplugin/helpers.test.d.mts +2 -0
- package/dist/lib/unplugin/helpers.test.mjs +25 -0
- package/dist/lib/unplugin/helpers.test.mjs.map +1 -0
- package/dist/lib/unplugin/module-resolution.cjs +8 -1
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
- package/dist/lib/unplugin/module-resolution.mjs +3 -1
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/module-resolution.test.cjs +23 -0
- package/dist/lib/unplugin/module-resolution.test.d.cts +1 -0
- package/dist/lib/unplugin/module-resolution.test.d.mts +2 -0
- package/dist/lib/unplugin/module-resolution.test.mjs +25 -0
- package/dist/lib/unplugin/module-resolution.test.mjs.map +1 -0
- package/dist/lib/unplugin/plugin.cjs +12 -1
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts.map +1 -1
- package/dist/lib/unplugin/plugin.mjs +6 -1
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.test.cjs +23 -0
- package/dist/lib/unplugin/plugin.test.d.cts +1 -0
- package/dist/lib/unplugin/plugin.test.d.mts +2 -0
- package/dist/lib/unplugin/plugin.test.mjs +25 -0
- package/dist/lib/unplugin/plugin.test.mjs.map +1 -0
- package/dist/lib/utilities/file-header.cjs +13 -0
- package/dist/lib/utilities/file-header.mjs +8 -1
- package/dist/lib/utilities/file-header.mjs.map +1 -1
- package/dist/lib/utilities/file-header.test.cjs +23 -0
- package/dist/lib/utilities/file-header.test.d.cts +1 -0
- package/dist/lib/utilities/file-header.test.d.mts +2 -0
- package/dist/lib/utilities/file-header.test.mjs +25 -0
- package/dist/lib/utilities/file-header.test.mjs.map +1 -0
- package/dist/lib/utilities/format.cjs +11 -1
- package/dist/lib/utilities/format.mjs +6 -1
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/lib/utilities/format.test.cjs +23 -0
- package/dist/lib/utilities/format.test.d.cts +1 -0
- package/dist/lib/utilities/format.test.d.mts +2 -0
- package/dist/lib/utilities/format.test.mjs +25 -0
- package/dist/lib/utilities/format.test.mjs.map +1 -0
- package/dist/lib/utilities/source-file.cjs +12 -1
- package/dist/lib/utilities/source-file.mjs +7 -1
- package/dist/lib/utilities/source-file.mjs.map +1 -1
- package/dist/lib/utilities/source-file.test.cjs +23 -0
- package/dist/lib/utilities/source-file.test.d.cts +1 -0
- package/dist/lib/utilities/source-file.test.d.mts +2 -0
- package/dist/lib/utilities/source-file.test.mjs +25 -0
- package/dist/lib/utilities/source-file.test.mjs.map +1 -0
- package/dist/lib/utilities/source-map.cjs +8 -1
- package/dist/lib/utilities/source-map.mjs +3 -1
- package/dist/lib/utilities/source-map.mjs.map +1 -1
- package/dist/lib/utilities/source-map.test.cjs +23 -0
- package/dist/lib/utilities/source-map.test.d.cts +1 -0
- package/dist/lib/utilities/source-map.test.d.mts +2 -0
- package/dist/lib/utilities/source-map.test.mjs +25 -0
- package/dist/lib/utilities/source-map.test.mjs.map +1 -0
- package/dist/lib/utilities/write-file.cjs +9 -1
- package/dist/lib/utilities/write-file.mjs +3 -1
- package/dist/lib/utilities/write-file.mjs.map +1 -1
- package/dist/lib/utilities/write-file.test.cjs +23 -0
- package/dist/lib/utilities/write-file.test.d.cts +1 -0
- package/dist/lib/utilities/write-file.test.d.mts +2 -0
- package/dist/lib/utilities/write-file.test.mjs +25 -0
- package/dist/lib/utilities/write-file.test.mjs.map +1 -0
- package/dist/lib/vfs.cjs +8 -1
- package/dist/lib/vfs.d.cts.map +1 -1
- package/dist/lib/vfs.d.mts.map +1 -1
- package/dist/lib/vfs.mjs +3 -1
- package/dist/lib/vfs.mjs.map +1 -1
- package/dist/lib/vfs.test.cjs +23 -0
- package/dist/lib/vfs.test.d.cts +1 -0
- package/dist/lib/vfs.test.d.mts +2 -0
- package/dist/lib/vfs.test.mjs +25 -0
- package/dist/lib/vfs.test.mjs.map +1 -0
- package/dist/plugin-base.cjs +12 -1
- package/dist/plugin-base.mjs +6 -1
- package/dist/plugin-base.mjs.map +1 -1
- package/dist/plugin-base.test.cjs +23 -0
- package/dist/plugin-base.test.d.cts +1 -0
- package/dist/plugin-base.test.d.mts +2 -0
- package/dist/plugin-base.test.mjs +25 -0
- package/dist/plugin-base.test.mjs.map +1 -0
- package/dist/plugin-utils/build-helpers.cjs +8 -0
- package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/build-helpers.mjs +3 -1
- package/dist/plugin-utils/build-helpers.mjs.map +1 -1
- package/dist/plugin-utils/build-helpers.test.cjs +23 -0
- package/dist/plugin-utils/build-helpers.test.d.cts +1 -0
- package/dist/plugin-utils/build-helpers.test.d.mts +2 -0
- package/dist/plugin-utils/build-helpers.test.mjs +25 -0
- package/dist/plugin-utils/build-helpers.test.mjs.map +1 -0
- package/dist/plugin-utils/combine-plugins.cjs +12 -1
- package/dist/plugin-utils/combine-plugins.mjs +6 -1
- package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
- package/dist/plugin-utils/combine-plugins.test.cjs +23 -0
- package/dist/plugin-utils/combine-plugins.test.d.cts +1 -0
- package/dist/plugin-utils/combine-plugins.test.d.mts +2 -0
- package/dist/plugin-utils/combine-plugins.test.mjs +25 -0
- package/dist/plugin-utils/combine-plugins.test.mjs.map +1 -0
- package/dist/plugin-utils/context-helpers.cjs +13 -0
- package/dist/plugin-utils/context-helpers.mjs +8 -1
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.test.cjs +23 -0
- package/dist/plugin-utils/context-helpers.test.d.cts +1 -0
- package/dist/plugin-utils/context-helpers.test.d.mts +2 -0
- package/dist/plugin-utils/context-helpers.test.mjs +25 -0
- package/dist/plugin-utils/context-helpers.test.mjs.map +1 -0
- package/dist/plugin-utils/docs-helper.cjs +8 -0
- package/dist/plugin-utils/docs-helper.mjs +3 -1
- package/dist/plugin-utils/docs-helper.mjs.map +1 -1
- package/dist/plugin-utils/docs-helper.test.cjs +23 -0
- package/dist/plugin-utils/docs-helper.test.d.cts +1 -0
- package/dist/plugin-utils/docs-helper.test.d.mts +2 -0
- package/dist/plugin-utils/docs-helper.test.mjs +25 -0
- package/dist/plugin-utils/docs-helper.test.mjs.map +1 -0
- package/dist/plugin-utils/enable-plugin.cjs +9 -1
- package/dist/plugin-utils/enable-plugin.d.cts.map +1 -1
- package/dist/plugin-utils/enable-plugin.d.mts.map +1 -1
- package/dist/plugin-utils/enable-plugin.mjs +3 -1
- package/dist/plugin-utils/enable-plugin.mjs.map +1 -1
- package/dist/plugin-utils/enable-plugin.test.cjs +23 -0
- package/dist/plugin-utils/enable-plugin.test.d.cts +1 -0
- package/dist/plugin-utils/enable-plugin.test.d.mts +2 -0
- package/dist/plugin-utils/enable-plugin.test.mjs +25 -0
- package/dist/plugin-utils/enable-plugin.test.mjs.map +1 -0
- package/dist/plugin-utils/extend.cjs +9 -1
- package/dist/plugin-utils/extend.d.cts.map +1 -1
- package/dist/plugin-utils/extend.d.mts.map +1 -1
- package/dist/plugin-utils/extend.mjs +3 -1
- package/dist/plugin-utils/extend.mjs.map +1 -1
- package/dist/plugin-utils/extend.test.cjs +23 -0
- package/dist/plugin-utils/extend.test.d.cts +1 -0
- package/dist/plugin-utils/extend.test.d.mts +2 -0
- package/dist/plugin-utils/extend.test.mjs +25 -0
- package/dist/plugin-utils/extend.test.mjs.map +1 -0
- package/dist/plugin-utils/filter.cjs +17 -0
- package/dist/plugin-utils/filter.mjs +13 -1
- package/dist/plugin-utils/filter.mjs.map +1 -1
- package/dist/plugin-utils/filter.test.cjs +23 -0
- package/dist/plugin-utils/filter.test.d.cts +1 -0
- package/dist/plugin-utils/filter.test.d.mts +2 -0
- package/dist/plugin-utils/filter.test.mjs +25 -0
- package/dist/plugin-utils/filter.test.mjs.map +1 -0
- package/dist/plugin-utils/format-package-json.cjs +9 -1
- package/dist/plugin-utils/format-package-json.mjs +3 -1
- package/dist/plugin-utils/format-package-json.mjs.map +1 -1
- package/dist/plugin-utils/format-package-json.test.cjs +23 -0
- package/dist/plugin-utils/format-package-json.test.d.cts +1 -0
- package/dist/plugin-utils/format-package-json.test.d.mts +2 -0
- package/dist/plugin-utils/format-package-json.test.mjs +25 -0
- package/dist/plugin-utils/format-package-json.test.mjs.map +1 -0
- package/dist/plugin-utils/format.cjs +9 -1
- package/dist/plugin-utils/format.mjs +3 -1
- package/dist/plugin-utils/format.mjs.map +1 -1
- package/dist/plugin-utils/format.test.cjs +23 -0
- package/dist/plugin-utils/format.test.d.cts +1 -0
- package/dist/plugin-utils/format.test.d.mts +2 -0
- package/dist/plugin-utils/format.test.mjs +25 -0
- package/dist/plugin-utils/format.test.mjs.map +1 -0
- package/dist/plugin-utils/get-config-path.cjs +9 -1
- package/dist/plugin-utils/get-config-path.mjs +3 -1
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/get-config-path.test.cjs +23 -0
- package/dist/plugin-utils/get-config-path.test.d.cts +1 -0
- package/dist/plugin-utils/get-config-path.test.d.mts +2 -0
- package/dist/plugin-utils/get-config-path.test.mjs +25 -0
- package/dist/plugin-utils/get-config-path.test.mjs.map +1 -0
- package/dist/plugin-utils/helpers.cjs +25 -0
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +20 -1
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/helpers.test.cjs +23 -0
- package/dist/plugin-utils/helpers.test.d.cts +1 -0
- package/dist/plugin-utils/helpers.test.d.mts +2 -0
- package/dist/plugin-utils/helpers.test.mjs +25 -0
- package/dist/plugin-utils/helpers.test.mjs.map +1 -0
- package/dist/plugin-utils/install.cjs +12 -1
- package/dist/plugin-utils/install.mjs +6 -1
- package/dist/plugin-utils/install.mjs.map +1 -1
- package/dist/plugin-utils/install.test.cjs +23 -0
- package/dist/plugin-utils/install.test.d.cts +1 -0
- package/dist/plugin-utils/install.test.d.mts +2 -0
- package/dist/plugin-utils/install.test.mjs +25 -0
- package/dist/plugin-utils/install.test.mjs.map +1 -0
- package/dist/plugin-utils/logging.cjs +24 -0
- package/dist/plugin-utils/logging.mjs +20 -1
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/plugin-utils/logging.test.cjs +23 -0
- package/dist/plugin-utils/logging.test.d.cts +1 -0
- package/dist/plugin-utils/logging.test.d.mts +2 -0
- package/dist/plugin-utils/logging.test.mjs +25 -0
- package/dist/plugin-utils/logging.test.mjs.map +1 -0
- package/dist/plugin-utils/merge.cjs +11 -1
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/merge.mjs +6 -1
- package/dist/plugin-utils/merge.mjs.map +1 -1
- package/dist/plugin-utils/merge.test.cjs +23 -0
- package/dist/plugin-utils/merge.test.d.cts +1 -0
- package/dist/plugin-utils/merge.test.d.mts +2 -0
- package/dist/plugin-utils/merge.test.mjs +25 -0
- package/dist/plugin-utils/merge.test.mjs.map +1 -0
- package/dist/plugin-utils/modules.cjs +9 -1
- package/dist/plugin-utils/modules.mjs +4 -1
- package/dist/plugin-utils/modules.mjs.map +1 -1
- package/dist/plugin-utils/modules.test.cjs +23 -0
- package/dist/plugin-utils/modules.test.d.cts +1 -0
- package/dist/plugin-utils/modules.test.d.mts +2 -0
- package/dist/plugin-utils/modules.test.mjs +25 -0
- package/dist/plugin-utils/modules.test.mjs.map +1 -0
- package/dist/plugin-utils/paths.cjs +8 -0
- package/dist/plugin-utils/paths.mjs +3 -1
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/plugin-utils/paths.test.cjs +23 -0
- package/dist/plugin-utils/paths.test.d.cts +1 -0
- package/dist/plugin-utils/paths.test.d.mts +2 -0
- package/dist/plugin-utils/paths.test.mjs +25 -0
- package/dist/plugin-utils/paths.test.mjs.map +1 -0
- package/dist/plugin-utils/virtual.cjs +17 -1
- package/dist/plugin-utils/virtual.mjs +12 -1
- package/dist/plugin-utils/virtual.mjs.map +1 -1
- package/dist/plugin-utils/virtual.test.cjs +23 -0
- package/dist/plugin-utils/virtual.test.d.cts +1 -0
- package/dist/plugin-utils/virtual.test.d.mts +2 -0
- package/dist/plugin-utils/virtual.test.mjs +25 -0
- package/dist/plugin-utils/virtual.test.mjs.map +1 -0
- package/dist/schemas/fs.d.cts.map +1 -1
- package/dist/schemas/fs.d.mts.map +1 -1
- package/dist/storage/base.cjs +9 -1
- package/dist/storage/base.d.cts.map +1 -1
- package/dist/storage/base.d.mts.map +1 -1
- package/dist/storage/base.mjs +3 -1
- package/dist/storage/base.mjs.map +1 -1
- package/dist/storage/base.test.cjs +23 -0
- package/dist/storage/base.test.d.cts +1 -0
- package/dist/storage/base.test.d.mts +2 -0
- package/dist/storage/base.test.mjs +25 -0
- package/dist/storage/base.test.mjs.map +1 -0
- package/dist/storage/file-system.cjs +9 -1
- package/dist/storage/file-system.mjs +3 -1
- package/dist/storage/file-system.mjs.map +1 -1
- package/dist/storage/file-system.test.cjs +23 -0
- package/dist/storage/file-system.test.d.cts +1 -0
- package/dist/storage/file-system.test.d.mts +2 -0
- package/dist/storage/file-system.test.mjs +25 -0
- package/dist/storage/file-system.test.mjs.map +1 -0
- package/dist/storage/helpers.cjs +12 -0
- package/dist/storage/helpers.mjs +7 -1
- package/dist/storage/helpers.mjs.map +1 -1
- package/dist/storage/helpers.test.cjs +23 -0
- package/dist/storage/helpers.test.d.cts +1 -0
- package/dist/storage/helpers.test.d.mts +2 -0
- package/dist/storage/helpers.test.mjs +25 -0
- package/dist/storage/helpers.test.mjs.map +1 -0
- package/dist/storage/virtual.cjs +9 -1
- package/dist/storage/virtual.d.cts.map +1 -1
- package/dist/storage/virtual.d.mts.map +1 -1
- package/dist/storage/virtual.mjs +3 -1
- package/dist/storage/virtual.mjs.map +1 -1
- package/dist/storage/virtual.test.cjs +23 -0
- package/dist/storage/virtual.test.d.cts +1 -0
- package/dist/storage/virtual.test.d.mts +2 -0
- package/dist/storage/virtual.test.mjs +25 -0
- package/dist/storage/virtual.test.mjs.map +1 -0
- package/package.json +257 -17
|
@@ -6,6 +6,7 @@ import __tsdown_shims_url from 'node:url'
|
|
|
6
6
|
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
7
|
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
8
|
|
|
9
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
9
10
|
import { appendPath } from "@stryke/path/append";
|
|
10
11
|
import { findFileExtension } from "@stryke/path/file-path-fns";
|
|
11
12
|
import { defu as defu$1 } from "defu";
|
|
@@ -15,6 +16,10 @@ import { format as format$1, resolveConfig } from "prettier";
|
|
|
15
16
|
import importsPlugin from "prettier-plugin-organize-imports";
|
|
16
17
|
|
|
17
18
|
//#region src/lib/utilities/format.ts
|
|
19
|
+
var format_exports = /* @__PURE__ */ __exportAll({
|
|
20
|
+
format: () => format,
|
|
21
|
+
formatFolder: () => formatFolder
|
|
22
|
+
});
|
|
18
23
|
/**
|
|
19
24
|
* Formats code using Prettier based on the file path.
|
|
20
25
|
*
|
|
@@ -58,5 +63,5 @@ async function formatFolder(context, path) {
|
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
//#endregion
|
|
61
|
-
export { format, formatFolder };
|
|
66
|
+
export { format, formatFolder, format_exports };
|
|
62
67
|
//# sourceMappingURL=format.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.mjs","names":["prettier","defu"],"sources":["../../../src/lib/utilities/format.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { listFiles } from \"@stryke/fs/list-files\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { defu } from \"defu\";\nimport { format as prettier, resolveConfig } from \"prettier\";\nimport importsPlugin from \"prettier-plugin-organize-imports\";\nimport { Context } from \"../../types/context\";\n\n/**\n * Formats code using Prettier based on the file path.\n *\n * @param context - The Powerlines context.\n * @param path - The file path to use for resolving Prettier configuration.\n * @param data - The code string to format.\n * @param force - Whether to force formatting even for output/build paths.\n * @returns A promise that resolves to the formatted code string.\n */\nexport async function format(\n context: Context,\n path: string,\n data: string,\n force = false\n): Promise<string> {\n if (\n !force &&\n ((context.config.output.copy &&\n isParentPath(\n path,\n appendPath(context.config.output.copy.path, context.config.cwd)\n )) ||\n isParentPath(\n path,\n appendPath(context.config.output.path, context.config.cwd)\n ))\n ) {\n return data;\n }\n\n let code = data;\n try {\n const resolvedConfig = await resolveConfig(path);\n if (resolvedConfig) {\n code = await prettier(\n data,\n defu(\n {\n absolutePath: path,\n ...resolvedConfig\n },\n findFileExtension(path) === \"ts\" || findFileExtension(path) === \"tsx\"\n ? { plugins: [importsPlugin] }\n : {}\n )\n );\n }\n } catch (error) {\n throw new Error(\n `Failed to format file at ${path} with Prettier: ${\n (error as Error).message\n }`,\n { cause: error }\n );\n }\n\n return code;\n}\n\n/**\n * Formats all files in a folder using Prettier based on their file paths.\n *\n * @param context - The Powerlines context.\n * @param path - The folder path containing files to format.\n * @returns A promise that resolves when all files have been formatted.\n */\nexport async function formatFolder(context: Context, path: string) {\n if (\n !context.config.output.copy ||\n (!isParentPath(\n path,\n appendPath(context.config.output.copy.path, context.config.cwd)\n ) &&\n !isParentPath(\n path,\n appendPath(context.config.output.path, context.config.cwd)\n ))\n ) {\n await Promise.allSettled(\n (await listFiles(path)).map(async file => {\n if (\n (!context.config.output.copy ||\n !isParentPath(\n file,\n appendPath(context.config.output.copy.path, context.config.cwd)\n )) &&\n !isParentPath(\n file,\n appendPath(context.config.output.path, context.config.cwd)\n )\n ) {\n const data = await context.fs.read(file);\n if (data) {\n const formatted = await format(context, file, data);\n\n return context.fs.write(file, formatted);\n }\n }\n })\n );\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"format.mjs","names":["prettier","defu"],"sources":["../../../src/lib/utilities/format.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { listFiles } from \"@stryke/fs/list-files\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { defu } from \"defu\";\nimport { format as prettier, resolveConfig } from \"prettier\";\nimport importsPlugin from \"prettier-plugin-organize-imports\";\nimport { Context } from \"../../types/context\";\n\n/**\n * Formats code using Prettier based on the file path.\n *\n * @param context - The Powerlines context.\n * @param path - The file path to use for resolving Prettier configuration.\n * @param data - The code string to format.\n * @param force - Whether to force formatting even for output/build paths.\n * @returns A promise that resolves to the formatted code string.\n */\nexport async function format(\n context: Context,\n path: string,\n data: string,\n force = false\n): Promise<string> {\n if (\n !force &&\n ((context.config.output.copy &&\n isParentPath(\n path,\n appendPath(context.config.output.copy.path, context.config.cwd)\n )) ||\n isParentPath(\n path,\n appendPath(context.config.output.path, context.config.cwd)\n ))\n ) {\n return data;\n }\n\n let code = data;\n try {\n const resolvedConfig = await resolveConfig(path);\n if (resolvedConfig) {\n code = await prettier(\n data,\n defu(\n {\n absolutePath: path,\n ...resolvedConfig\n },\n findFileExtension(path) === \"ts\" || findFileExtension(path) === \"tsx\"\n ? { plugins: [importsPlugin] }\n : {}\n )\n );\n }\n } catch (error) {\n throw new Error(\n `Failed to format file at ${path} with Prettier: ${\n (error as Error).message\n }`,\n { cause: error }\n );\n }\n\n return code;\n}\n\n/**\n * Formats all files in a folder using Prettier based on their file paths.\n *\n * @param context - The Powerlines context.\n * @param path - The folder path containing files to format.\n * @returns A promise that resolves when all files have been formatted.\n */\nexport async function formatFolder(context: Context, path: string) {\n if (\n !context.config.output.copy ||\n (!isParentPath(\n path,\n appendPath(context.config.output.copy.path, context.config.cwd)\n ) &&\n !isParentPath(\n path,\n appendPath(context.config.output.path, context.config.cwd)\n ))\n ) {\n await Promise.allSettled(\n (await listFiles(path)).map(async file => {\n if (\n (!context.config.output.copy ||\n !isParentPath(\n file,\n appendPath(context.config.output.copy.path, context.config.cwd)\n )) &&\n !isParentPath(\n file,\n appendPath(context.config.output.path, context.config.cwd)\n )\n ) {\n const data = await context.fs.read(file);\n if (data) {\n const formatted = await format(context, file, data);\n\n return context.fs.write(file, formatted);\n }\n }\n })\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,eAAsB,OACpB,SACA,MACA,MACA,QAAQ,OACS;CACjB,IACE,CAAC,UACC,QAAQ,OAAO,OAAO,QACtB,aACE,MACA,WAAW,QAAQ,OAAO,OAAO,KAAK,MAAM,QAAQ,OAAO,GAAG,CAChE,KACA,aACE,MACA,WAAW,QAAQ,OAAO,OAAO,MAAM,QAAQ,OAAO,GAAG,CAC3D,IAEF,OAAO;CAGT,IAAI,OAAO;CACX,IAAI;EACF,MAAM,iBAAiB,MAAM,cAAc,IAAI;EAC/C,IAAI,gBACF,OAAO,MAAMA,SACX,MACAC,OACE;GACE,cAAc;GACd,GAAG;EACL,GACA,kBAAkB,IAAI,MAAM,QAAQ,kBAAkB,IAAI,MAAM,QAC5D,EAAE,SAAS,CAAC,aAAa,EAAE,IAC3B,CAAC,CACP,CACF;CAEJ,SAAS,OAAO;EACd,MAAM,IAAI,MACR,4BAA4B,KAAK,kBAC9B,MAAgB,WAEnB,EAAE,OAAO,MAAM,CACjB;CACF;CAEA,OAAO;AACT;;;;;;;;AASA,eAAsB,aAAa,SAAkB,MAAc;CACjE,IACE,CAAC,QAAQ,OAAO,OAAO,QACtB,CAAC,aACA,MACA,WAAW,QAAQ,OAAO,OAAO,KAAK,MAAM,QAAQ,OAAO,GAAG,CAChE,KACE,CAAC,aACC,MACA,WAAW,QAAQ,OAAO,OAAO,MAAM,QAAQ,OAAO,GAAG,CAC3D,GAEF,MAAM,QAAQ,YACX,MAAM,UAAU,IAAI,GAAG,IAAI,OAAM,SAAQ;EACxC,KACG,CAAC,QAAQ,OAAO,OAAO,QACtB,CAAC,aACC,MACA,WAAW,QAAQ,OAAO,OAAO,KAAK,MAAM,QAAQ,OAAO,GAAG,CAChE,MACF,CAAC,aACC,MACA,WAAW,QAAQ,OAAO,OAAO,MAAM,QAAQ,OAAO,GAAG,CAC3D,GACA;GACA,MAAM,OAAO,MAAM,QAAQ,GAAG,KAAK,IAAI;GACvC,IAAI,MAAM;IACR,MAAM,YAAY,MAAM,OAAO,SAAS,MAAM,IAAI;IAElD,OAAO,QAAQ,GAAG,MAAM,MAAM,SAAS;GACzC;EACF;CACF,CAAC,CACH;AAEJ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
const require_lib_utilities_format = require('./format.cjs');
|
|
10
|
+
let vitest = require("vitest");
|
|
11
|
+
|
|
12
|
+
//#region src/lib/utilities/format.test.ts
|
|
13
|
+
(0, vitest.describe)("base/core/src/lib/utilities/format.ts", () => {
|
|
14
|
+
(0, vitest.it)("loads module exports", () => {
|
|
15
|
+
(0, vitest.expect)(require_lib_utilities_format.format_exports).toBeDefined();
|
|
16
|
+
(0, vitest.expect)(typeof require_lib_utilities_format.format_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
(0, vitest.it)("has at least one runtime export", () => {
|
|
19
|
+
(0, vitest.expect)(Object.keys(require_lib_utilities_format.format_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { format_exports } from "./format.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/lib/utilities/format.test.ts
|
|
13
|
+
describe("base/core/src/lib/utilities/format.ts", () => {
|
|
14
|
+
it("loads module exports", () => {
|
|
15
|
+
expect(format_exports).toBeDefined();
|
|
16
|
+
expect(typeof format_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
it("has at least one runtime export", () => {
|
|
19
|
+
expect(Object.keys(format_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { };
|
|
25
|
+
//# sourceMappingURL=format.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.test.mjs","names":["moduleExports"],"sources":["../../../src/lib/utilities/format.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./format\";\n\ndescribe(\"base/core/src/lib/utilities/format.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,+CAA+C;CACtD,GAAG,8BAA8B;EAC/B,OAAOA,cAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,cAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,cAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
|
|
@@ -15,6 +15,11 @@ let magic_string = require("magic-string");
|
|
|
15
15
|
magic_string = require_runtime.__toESM(magic_string, 1);
|
|
16
16
|
|
|
17
17
|
//#region src/lib/utilities/source-file.ts
|
|
18
|
+
var source_file_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
19
|
+
getMagicString: () => getMagicString,
|
|
20
|
+
getSourceFile: () => getSourceFile,
|
|
21
|
+
getString: () => getString
|
|
22
|
+
});
|
|
18
23
|
/**
|
|
19
24
|
* Get the string from the source.
|
|
20
25
|
*
|
|
@@ -55,4 +60,10 @@ function getSourceFile(code, id) {
|
|
|
55
60
|
//#endregion
|
|
56
61
|
exports.getMagicString = getMagicString;
|
|
57
62
|
exports.getSourceFile = getSourceFile;
|
|
58
|
-
exports.getString = getString;
|
|
63
|
+
exports.getString = getString;
|
|
64
|
+
Object.defineProperty(exports, 'source_file_exports', {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return source_file_exports;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
@@ -6,12 +6,18 @@ import __tsdown_shims_url from 'node:url'
|
|
|
6
6
|
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
7
|
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
8
|
|
|
9
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
9
10
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
10
11
|
import { isString } from "@stryke/type-checks/is-string";
|
|
11
12
|
import { readFileIfExistingSync } from "@stryke/fs/read-file";
|
|
12
13
|
import MagicString from "magic-string";
|
|
13
14
|
|
|
14
15
|
//#region src/lib/utilities/source-file.ts
|
|
16
|
+
var source_file_exports = /* @__PURE__ */ __exportAll({
|
|
17
|
+
getMagicString: () => getMagicString,
|
|
18
|
+
getSourceFile: () => getSourceFile,
|
|
19
|
+
getString: () => getString
|
|
20
|
+
});
|
|
15
21
|
/**
|
|
16
22
|
* Get the string from the source.
|
|
17
23
|
*
|
|
@@ -50,5 +56,5 @@ function getSourceFile(code, id) {
|
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
//#endregion
|
|
53
|
-
export { getMagicString, getSourceFile, getString };
|
|
59
|
+
export { getMagicString, getSourceFile, getString, source_file_exports };
|
|
54
60
|
//# sourceMappingURL=source-file.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.mjs","names":[],"sources":["../../../src/lib/utilities/source-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { readFileIfExistingSync } from \"@stryke/fs/read-file\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport MagicString from \"magic-string\";\nimport { TransformResult } from \"unplugin\";\nimport { SourceFile } from \"../../types/context\";\n\n/**\n * Get the string from the source.\n *\n * @param code - The source string or magic string.\n * @returns The source string.\n */\nexport function getString(\n code: string | MagicString | TransformResult\n): string {\n if (!code) {\n return \"\";\n }\n\n if (isString(code)) {\n return code;\n }\n\n if (isSetObject(code) && \"code\" in code) {\n return code.code;\n }\n\n return code.toString();\n}\n\n/**\n * Get the magic string.\n *\n * @param code - The source string or magic string.\n * @returns The magic string.\n */\nexport function getMagicString(code: string | MagicString): MagicString {\n if (isString(code)) {\n return new MagicString(code);\n }\n\n return code;\n}\n\n/**\n * Get the source file.\n *\n * @param code - The source code.\n * @param id - The name of the file.\n * @returns The source file.\n */\nexport function getSourceFile(\n code: string | MagicString,\n id: string\n): SourceFile {\n const content = code ?? readFileIfExistingSync(id);\n\n return {\n id,\n code: getMagicString(content),\n env: []\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"source-file.mjs","names":[],"sources":["../../../src/lib/utilities/source-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { readFileIfExistingSync } from \"@stryke/fs/read-file\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport MagicString from \"magic-string\";\nimport { TransformResult } from \"unplugin\";\nimport { SourceFile } from \"../../types/context\";\n\n/**\n * Get the string from the source.\n *\n * @param code - The source string or magic string.\n * @returns The source string.\n */\nexport function getString(\n code: string | MagicString | TransformResult\n): string {\n if (!code) {\n return \"\";\n }\n\n if (isString(code)) {\n return code;\n }\n\n if (isSetObject(code) && \"code\" in code) {\n return code.code;\n }\n\n return code.toString();\n}\n\n/**\n * Get the magic string.\n *\n * @param code - The source string or magic string.\n * @returns The magic string.\n */\nexport function getMagicString(code: string | MagicString): MagicString {\n if (isString(code)) {\n return new MagicString(code);\n }\n\n return code;\n}\n\n/**\n * Get the source file.\n *\n * @param code - The source code.\n * @param id - The name of the file.\n * @returns The source file.\n */\nexport function getSourceFile(\n code: string | MagicString,\n id: string\n): SourceFile {\n const content = code ?? readFileIfExistingSync(id);\n\n return {\n id,\n code: getMagicString(content),\n env: []\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAgB,UACd,MACQ;CACR,IAAI,CAAC,MACH,OAAO;CAGT,IAAI,SAAS,IAAI,GACf,OAAO;CAGT,IAAI,YAAY,IAAI,KAAK,UAAU,MACjC,OAAO,KAAK;CAGd,OAAO,KAAK,SAAS;AACvB;;;;;;;AAQA,SAAgB,eAAe,MAAyC;CACtE,IAAI,SAAS,IAAI,GACf,OAAO,IAAI,YAAY,IAAI;CAG7B,OAAO;AACT;;;;;;;;AASA,SAAgB,cACd,MACA,IACY;CAGZ,OAAO;EACL;EACA,MAAM,eAJQ,QAAQ,uBAAuB,EAAE,CAInB;EAC5B,KAAK,CAAC;CACR;AACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
const require_lib_utilities_source_file = require('./source-file.cjs');
|
|
10
|
+
let vitest = require("vitest");
|
|
11
|
+
|
|
12
|
+
//#region src/lib/utilities/source-file.test.ts
|
|
13
|
+
(0, vitest.describe)("base/core/src/lib/utilities/source-file.ts", () => {
|
|
14
|
+
(0, vitest.it)("loads module exports", () => {
|
|
15
|
+
(0, vitest.expect)(require_lib_utilities_source_file.source_file_exports).toBeDefined();
|
|
16
|
+
(0, vitest.expect)(typeof require_lib_utilities_source_file.source_file_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
(0, vitest.it)("has at least one runtime export", () => {
|
|
19
|
+
(0, vitest.expect)(Object.keys(require_lib_utilities_source_file.source_file_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { source_file_exports } from "./source-file.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/lib/utilities/source-file.test.ts
|
|
13
|
+
describe("base/core/src/lib/utilities/source-file.ts", () => {
|
|
14
|
+
it("loads module exports", () => {
|
|
15
|
+
expect(source_file_exports).toBeDefined();
|
|
16
|
+
expect(typeof source_file_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
it("has at least one runtime export", () => {
|
|
19
|
+
expect(Object.keys(source_file_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { };
|
|
25
|
+
//# sourceMappingURL=source-file.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-file.test.mjs","names":["moduleExports"],"sources":["../../../src/lib/utilities/source-file.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./source-file\";\n\ndescribe(\"base/core/src/lib/utilities/source-file.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,oDAAoD;CAC3D,GAAG,8BAA8B;EAC/B,OAAOA,mBAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,mBAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,mBAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
|
|
@@ -12,6 +12,7 @@ let diff_match_patch = require("diff-match-patch");
|
|
|
12
12
|
diff_match_patch = require_runtime.__toESM(diff_match_patch, 1);
|
|
13
13
|
|
|
14
14
|
//#region src/lib/utilities/source-map.ts
|
|
15
|
+
var source_map_exports = /* @__PURE__ */ require_runtime.__exportAll({ generateSourceMap: () => generateSourceMap });
|
|
15
16
|
const dmp = new diff_match_patch.default();
|
|
16
17
|
/**
|
|
17
18
|
* Generate code with source map.
|
|
@@ -62,4 +63,10 @@ function generateSourceMap(code, id, transpiled) {
|
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
//#endregion
|
|
65
|
-
exports.generateSourceMap = generateSourceMap;
|
|
66
|
+
exports.generateSourceMap = generateSourceMap;
|
|
67
|
+
Object.defineProperty(exports, 'source_map_exports', {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () {
|
|
70
|
+
return source_map_exports;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
@@ -6,9 +6,11 @@ import __tsdown_shims_url from 'node:url'
|
|
|
6
6
|
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
7
|
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
8
|
|
|
9
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
9
10
|
import Diff from "diff-match-patch";
|
|
10
11
|
|
|
11
12
|
//#region src/lib/utilities/source-map.ts
|
|
13
|
+
var source_map_exports = /* @__PURE__ */ __exportAll({ generateSourceMap: () => generateSourceMap });
|
|
12
14
|
const dmp = new Diff();
|
|
13
15
|
/**
|
|
14
16
|
* Generate code with source map.
|
|
@@ -59,5 +61,5 @@ function generateSourceMap(code, id, transpiled) {
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
//#endregion
|
|
62
|
-
export { generateSourceMap };
|
|
64
|
+
export { generateSourceMap, source_map_exports };
|
|
63
65
|
//# sourceMappingURL=source-map.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-map.mjs","names":[],"sources":["../../../src/lib/utilities/source-map.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport Diff from \"diff-match-patch\";\nimport type MagicString from \"magic-string\";\nimport type { TransformResult } from \"../../types/context\";\n\nconst dmp = new Diff();\n\n/**\n * Generate code with source map.\n *\n * @param code - The source code.\n * @param id - The file name.\n * @param transpiled - The transpiled code.\n * @returns The compiler result.\n */\nexport function generateSourceMap(\n code: MagicString,\n id: string,\n transpiled?: string\n): TransformResult | undefined {\n if (!transpiled) {\n return;\n }\n\n const diff = dmp.diff_main(code.toString(), transpiled);\n dmp.diff_cleanupSemantic(diff);\n\n let offset = 0;\n\n for (let index = 0; index < diff.length; index++) {\n if (diff[index]) {\n const [type, text] = diff[index]!;\n const textLength = text.length;\n\n switch (type) {\n case 0: {\n offset += textLength;\n break;\n }\n case 1: {\n code.prependLeft(offset, text);\n break;\n }\n case -1: {\n const next = diff.at(index + 1);\n\n if (next && next[0] === 1) {\n const replaceText = next[1];\n\n const firstNonWhitespaceIndexOfText = text.search(/\\S/);\n const offsetStart =\n offset + Math.max(firstNonWhitespaceIndexOfText, 0);\n\n code.update(offsetStart, offset + textLength, replaceText);\n index += 1;\n } else {\n code.remove(offset, offset + textLength);\n }\n\n offset += textLength;\n\n break;\n }\n }\n }\n }\n\n if (!code.hasChanged()) {\n return;\n }\n\n return {\n code: code.toString(),\n map: code.generateMap({\n source: id,\n file: `${id}.map`,\n includeContent: true\n })\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"source-map.mjs","names":[],"sources":["../../../src/lib/utilities/source-map.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport Diff from \"diff-match-patch\";\nimport type MagicString from \"magic-string\";\nimport type { TransformResult } from \"../../types/context\";\n\nconst dmp = new Diff();\n\n/**\n * Generate code with source map.\n *\n * @param code - The source code.\n * @param id - The file name.\n * @param transpiled - The transpiled code.\n * @returns The compiler result.\n */\nexport function generateSourceMap(\n code: MagicString,\n id: string,\n transpiled?: string\n): TransformResult | undefined {\n if (!transpiled) {\n return;\n }\n\n const diff = dmp.diff_main(code.toString(), transpiled);\n dmp.diff_cleanupSemantic(diff);\n\n let offset = 0;\n\n for (let index = 0; index < diff.length; index++) {\n if (diff[index]) {\n const [type, text] = diff[index]!;\n const textLength = text.length;\n\n switch (type) {\n case 0: {\n offset += textLength;\n break;\n }\n case 1: {\n code.prependLeft(offset, text);\n break;\n }\n case -1: {\n const next = diff.at(index + 1);\n\n if (next && next[0] === 1) {\n const replaceText = next[1];\n\n const firstNonWhitespaceIndexOfText = text.search(/\\S/);\n const offsetStart =\n offset + Math.max(firstNonWhitespaceIndexOfText, 0);\n\n code.update(offsetStart, offset + textLength, replaceText);\n index += 1;\n } else {\n code.remove(offset, offset + textLength);\n }\n\n offset += textLength;\n\n break;\n }\n }\n }\n }\n\n if (!code.hasChanged()) {\n return;\n }\n\n return {\n code: code.toString(),\n map: code.generateMap({\n source: id,\n file: `${id}.map`,\n includeContent: true\n })\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAsBA,MAAM,MAAM,IAAI,KAAK;;;;;;;;;AAUrB,SAAgB,kBACd,MACA,IACA,YAC6B;CAC7B,IAAI,CAAC,YACH;CAGF,MAAM,OAAO,IAAI,UAAU,KAAK,SAAS,GAAG,UAAU;CACtD,IAAI,qBAAqB,IAAI;CAE7B,IAAI,SAAS;CAEb,KAAK,IAAI,QAAQ,GAAG,QAAQ,KAAK,QAAQ,SACvC,IAAI,KAAK,QAAQ;EACf,MAAM,CAAC,MAAM,QAAQ,KAAK;EAC1B,MAAM,aAAa,KAAK;EAExB,QAAQ,MAAR;GACE,KAAK;IACH,UAAU;IACV;GAEF,KAAK;IACH,KAAK,YAAY,QAAQ,IAAI;IAC7B;GAEF,KAAK,IAAI;IACP,MAAM,OAAO,KAAK,GAAG,QAAQ,CAAC;IAE9B,IAAI,QAAQ,KAAK,OAAO,GAAG;KACzB,MAAM,cAAc,KAAK;KAEzB,MAAM,gCAAgC,KAAK,OAAO,IAAI;KACtD,MAAM,cACJ,SAAS,KAAK,IAAI,+BAA+B,CAAC;KAEpD,KAAK,OAAO,aAAa,SAAS,YAAY,WAAW;KACzD,SAAS;IACX,OACE,KAAK,OAAO,QAAQ,SAAS,UAAU;IAGzC,UAAU;IAEV;GACF;EACF;CACF;CAGF,IAAI,CAAC,KAAK,WAAW,GACnB;CAGF,OAAO;EACL,MAAM,KAAK,SAAS;EACpB,KAAK,KAAK,YAAY;GACpB,QAAQ;GACR,MAAM,GAAG,GAAG;GACZ,gBAAgB;EAClB,CAAC;CACH;AACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
const require_lib_utilities_source_map = require('./source-map.cjs');
|
|
10
|
+
let vitest = require("vitest");
|
|
11
|
+
|
|
12
|
+
//#region src/lib/utilities/source-map.test.ts
|
|
13
|
+
(0, vitest.describe)("base/core/src/lib/utilities/source-map.ts", () => {
|
|
14
|
+
(0, vitest.it)("loads module exports", () => {
|
|
15
|
+
(0, vitest.expect)(require_lib_utilities_source_map.source_map_exports).toBeDefined();
|
|
16
|
+
(0, vitest.expect)(typeof require_lib_utilities_source_map.source_map_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
(0, vitest.it)("has at least one runtime export", () => {
|
|
19
|
+
(0, vitest.expect)(Object.keys(require_lib_utilities_source_map.source_map_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { source_map_exports } from "./source-map.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/lib/utilities/source-map.test.ts
|
|
13
|
+
describe("base/core/src/lib/utilities/source-map.ts", () => {
|
|
14
|
+
it("loads module exports", () => {
|
|
15
|
+
expect(source_map_exports).toBeDefined();
|
|
16
|
+
expect(typeof source_map_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
it("has at least one runtime export", () => {
|
|
19
|
+
expect(Object.keys(source_map_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { };
|
|
25
|
+
//# sourceMappingURL=source-map.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-map.test.mjs","names":["moduleExports"],"sources":["../../../src/lib/utilities/source-map.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./source-map\";\n\ndescribe(\"base/core/src/lib/utilities/source-map.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,mDAAmD;CAC1D,GAAG,8BAA8B;EAC/B,OAAOA,kBAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,kBAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,kBAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
|
|
@@ -7,10 +7,12 @@ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPat
|
|
|
7
7
|
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
10
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
10
11
|
let prettier = require("prettier");
|
|
11
12
|
let _stryke_fs_write_file = require("@stryke/fs/write-file");
|
|
12
13
|
|
|
13
14
|
//#region src/lib/utilities/write-file.ts
|
|
15
|
+
var write_file_exports = /* @__PURE__ */ require_runtime.__exportAll({ writeFile: () => writeFile });
|
|
14
16
|
/**
|
|
15
17
|
* Writes and formats a file to the file system
|
|
16
18
|
*
|
|
@@ -32,4 +34,10 @@ async function writeFile(log, filepath, content, skipFormat = false) {
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
//#endregion
|
|
35
|
-
exports.writeFile = writeFile;
|
|
37
|
+
exports.writeFile = writeFile;
|
|
38
|
+
Object.defineProperty(exports, 'write_file_exports', {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return write_file_exports;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
@@ -6,10 +6,12 @@ import __tsdown_shims_url from 'node:url'
|
|
|
6
6
|
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
7
|
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
8
|
|
|
9
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
9
10
|
import { format, resolveConfig } from "prettier";
|
|
10
11
|
import { writeFile as writeFile$1 } from "@stryke/fs/write-file";
|
|
11
12
|
|
|
12
13
|
//#region src/lib/utilities/write-file.ts
|
|
14
|
+
var write_file_exports = /* @__PURE__ */ __exportAll({ writeFile: () => writeFile });
|
|
13
15
|
/**
|
|
14
16
|
* Writes and formats a file to the file system
|
|
15
17
|
*
|
|
@@ -31,5 +33,5 @@ async function writeFile(log, filepath, content, skipFormat = false) {
|
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
//#endregion
|
|
34
|
-
export { writeFile };
|
|
36
|
+
export { writeFile, write_file_exports };
|
|
35
37
|
//# sourceMappingURL=write-file.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-file.mjs","names":["writeFileBase"],"sources":["../../../src/lib/utilities/write-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { writeFile as writeFileBase } from \"@stryke/fs/write-file\";\nimport { format, resolveConfig } from \"prettier\";\nimport type { LogFn } from \"../../types/logging\";\n\n/**\n * Writes and formats a file to the file system\n *\n * @param log - The logging function to use for logging errors\n * @param filepath - The file path to write the file\n * @param content - The content to write to the file\n * @param skipFormat - Should the plugin skip formatting the `content` string with Prettier\n */\nexport async function writeFile(\n log: LogFn,\n filepath: string,\n content: string,\n skipFormat = false\n) {\n try {\n if (skipFormat) {\n await writeFileBase(filepath, content);\n } else {\n const config = await resolveConfig(filepath);\n const formatted = await format(content, {\n ...(config ?? {}),\n filepath\n });\n\n await writeFileBase(filepath, formatted || \"\");\n }\n } catch (error) {\n log(\n \"error\",\n `Failed to write file ${filepath} to disk \\n${(error as Error)?.message ? (error as Error).message : \"\"}`\n );\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"write-file.mjs","names":["writeFileBase"],"sources":["../../../src/lib/utilities/write-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { writeFile as writeFileBase } from \"@stryke/fs/write-file\";\nimport { format, resolveConfig } from \"prettier\";\nimport type { LogFn } from \"../../types/logging\";\n\n/**\n * Writes and formats a file to the file system\n *\n * @param log - The logging function to use for logging errors\n * @param filepath - The file path to write the file\n * @param content - The content to write to the file\n * @param skipFormat - Should the plugin skip formatting the `content` string with Prettier\n */\nexport async function writeFile(\n log: LogFn,\n filepath: string,\n content: string,\n skipFormat = false\n) {\n try {\n if (skipFormat) {\n await writeFileBase(filepath, content);\n } else {\n const config = await resolveConfig(filepath);\n const formatted = await format(content, {\n ...(config ?? {}),\n filepath\n });\n\n await writeFileBase(filepath, formatted || \"\");\n }\n } catch (error) {\n log(\n \"error\",\n `Failed to write file ${filepath} to disk \\n${(error as Error)?.message ? (error as Error).message : \"\"}`\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8BA,eAAsB,UACpB,KACA,UACA,SACA,aAAa,OACb;CACA,IAAI;EACF,IAAI,YACF,MAAMA,YAAc,UAAU,OAAO;OAQrC,MAAMA,YAAc,UAAU,MALN,OAAO,SAAS;GACtC,GAAI,MAFe,cAAc,QAAQ,KAE3B,CAAC;GACf;EACF,CAAC,KAE0C,EAAE;CAEjD,SAAS,OAAO;EACd,IACE,SACA,wBAAwB,SAAS,aAAc,OAAiB,UAAW,MAAgB,UAAU,IACvG;CACF;AACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
const require_lib_utilities_write_file = require('./write-file.cjs');
|
|
10
|
+
let vitest = require("vitest");
|
|
11
|
+
|
|
12
|
+
//#region src/lib/utilities/write-file.test.ts
|
|
13
|
+
(0, vitest.describe)("base/core/src/lib/utilities/write-file.ts", () => {
|
|
14
|
+
(0, vitest.it)("loads module exports", () => {
|
|
15
|
+
(0, vitest.expect)(require_lib_utilities_write_file.write_file_exports).toBeDefined();
|
|
16
|
+
(0, vitest.expect)(typeof require_lib_utilities_write_file.write_file_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
(0, vitest.it)("has at least one runtime export", () => {
|
|
19
|
+
(0, vitest.expect)(Object.keys(require_lib_utilities_write_file.write_file_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { write_file_exports } from "./write-file.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/lib/utilities/write-file.test.ts
|
|
13
|
+
describe("base/core/src/lib/utilities/write-file.ts", () => {
|
|
14
|
+
it("loads module exports", () => {
|
|
15
|
+
expect(write_file_exports).toBeDefined();
|
|
16
|
+
expect(typeof write_file_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
it("has at least one runtime export", () => {
|
|
19
|
+
expect(Object.keys(write_file_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { };
|
|
25
|
+
//# sourceMappingURL=write-file.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-file.test.mjs","names":["moduleExports"],"sources":["../../../src/lib/utilities/write-file.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./write-file\";\n\ndescribe(\"base/core/src/lib/utilities/write-file.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,mDAAmD;CAC1D,GAAG,8BAA8B;EAC/B,OAAOA,kBAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,kBAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,kBAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
|
package/dist/lib/vfs.cjs
CHANGED
|
@@ -44,6 +44,7 @@ let node_buffer = require("node:buffer");
|
|
|
44
44
|
let node_url = require("node:url");
|
|
45
45
|
|
|
46
46
|
//#region src/lib/vfs.ts
|
|
47
|
+
var vfs_exports = /* @__PURE__ */ require_runtime.__exportAll({ VirtualFileSystem: () => VirtualFileSystem });
|
|
47
48
|
function toFilePath(path) {
|
|
48
49
|
return (0, _stryke_path_correct_path.correctPath)((0, _stryke_path_slash.slash)(path?.toString() || ".").replace(/^file:\/\//, ""));
|
|
49
50
|
}
|
|
@@ -1109,4 +1110,10 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
1109
1110
|
};
|
|
1110
1111
|
|
|
1111
1112
|
//#endregion
|
|
1112
|
-
exports.VirtualFileSystem = VirtualFileSystem;
|
|
1113
|
+
exports.VirtualFileSystem = VirtualFileSystem;
|
|
1114
|
+
Object.defineProperty(exports, 'vfs_exports', {
|
|
1115
|
+
enumerable: true,
|
|
1116
|
+
get: function () {
|
|
1117
|
+
return vfs_exports;
|
|
1118
|
+
}
|
|
1119
|
+
});
|
package/dist/lib/vfs.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vfs.d.cts","names":[],"sources":["../../src/lib/vfs.ts"],"mappings":";;;;;;;;AA4LA;;;;cAAa,iBAAA,YAA6B,0BAAA;EAAA;EAsgBN;;;;;;EAAA,OA1Ed,MAAA,CAAO,OAAA,EAAS,OAAA,GAAU,OAAA,CAAQ,iBAAA;EAkZnB;;;;;;EAAA,OAxUrB,UAAA,CAAW,OAAA,EAAS,OAAA,GAAU,iBAAA;EAodzC;;;EAAA,IAjZQ,QAAA,
|
|
1
|
+
{"version":3,"file":"vfs.d.cts","names":[],"sources":["../../src/lib/vfs.ts"],"mappings":"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"}
|
package/dist/lib/vfs.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vfs.d.mts","names":[],"sources":["../../src/lib/vfs.ts"],"mappings":";;;;;;;;;;;;;;cA4La,iBAAA,YAA6B,0BAAA;EAAA;;;AAA1C;;;;SA4bsB,MAAA,CAAO,OAAA,EAAS,OAAA,GAAU,OAAA,CAAQ,iBAAA;EAAR;;;;;;EAAA,OA0EhC,UAAA,CAAW,OAAA,EAAS,OAAA,GAAU,iBAAA;EAsJb;;;EAAA,IAnFpB,QAAA,
|
|
1
|
+
{"version":3,"file":"vfs.d.mts","names":[],"sources":["../../src/lib/vfs.ts"],"mappings":"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"}
|
package/dist/lib/vfs.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import __tsdown_shims_url from 'node:url'
|
|
|
6
6
|
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
7
|
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
8
|
|
|
9
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
9
10
|
import { format } from "./utilities/format.mjs";
|
|
10
11
|
import { replacePathTokens } from "../plugin-utils/paths.mjs";
|
|
11
12
|
import "../plugin-utils/index.mjs";
|
|
@@ -41,6 +42,7 @@ import { Blob } from "node:buffer";
|
|
|
41
42
|
import { fileURLToPath } from "node:url";
|
|
42
43
|
|
|
43
44
|
//#region src/lib/vfs.ts
|
|
45
|
+
var vfs_exports = /* @__PURE__ */ __exportAll({ VirtualFileSystem: () => VirtualFileSystem });
|
|
44
46
|
function toFilePath(path) {
|
|
45
47
|
return correctPath(slash(path?.toString() || ".").replace(/^file:\/\//, ""));
|
|
46
48
|
}
|
|
@@ -1106,5 +1108,5 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
1106
1108
|
};
|
|
1107
1109
|
|
|
1108
1110
|
//#endregion
|
|
1109
|
-
export { VirtualFileSystem };
|
|
1111
|
+
export { VirtualFileSystem, vfs_exports };
|
|
1110
1112
|
//# sourceMappingURL=vfs.mjs.map
|