UNPKG

@baseplate-dev/core-generators

Version:

Core generators for Baseplate

25 lines 992 B
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync'; import { packageInfoProvider } from '#src/providers/project.js'; const nodeTsUtilsPaths = createProviderType('node-ts-utils-paths'); const nodeTsUtilsPathsTask = createGeneratorTask({ dependencies: { packageInfo: packageInfoProvider }, exports: { nodeTsUtilsPaths: nodeTsUtilsPaths.export() }, run({ packageInfo }) { const srcRoot = packageInfo.getPackageSrcPath(); return { providers: { nodeTsUtilsPaths: { arrays: `${srcRoot}/utils/arrays.ts`, normalizeTypes: `${srcRoot}/utils/normalize-types.ts`, nulls: `${srcRoot}/utils/nulls.ts`, string: `${srcRoot}/utils/string.ts`, }, }, }; }, }); export const NODE_TS_UTILS_PATHS = { provider: nodeTsUtilsPaths, task: nodeTsUtilsPathsTask, }; //# sourceMappingURL=template-paths.js.map