-
Notifications
You must be signed in to change notification settings - Fork 6
Internal types package should not require build step #421
Copy link
Copy link
Closed
Labels
@arkenv/vite-pluginIssues or Pull Requests involving the Vite plugin for ArkEnvIssues or Pull Requests involving the Vite plugin for ArkEnvarkenvChanges to the `arkenv` npm package.Changes to the `arkenv` npm package.enhancementNew feature or improvementNew feature or improvementinfraInfrastructure related issue or pull requestInfrastructure related issue or pull request
Description
Metadata
Metadata
Assignees
Labels
@arkenv/vite-pluginIssues or Pull Requests involving the Vite plugin for ArkEnvIssues or Pull Requests involving the Vite plugin for ArkEnvarkenvChanges to the `arkenv` npm package.Changes to the `arkenv` npm package.enhancementNew feature or improvementNew feature or improvementinfraInfrastructure related issue or pull requestInfrastructure related issue or pull request
Problem
The
@repo/typesinternal package currently requires a build step (tsc) to generate.d.tsfiles in thedist/directory, even though it's a types-only package with no runtime code.This is necessary because:
dts.resolveconfiguration needs the package to have declaration files to bundle types correctly./dist/index.d.tsfor type resolutionWhy This Is Not Ideal
Current Workaround
The package currently has:
"build": "tsc"script to generate declaration files"types": "./dist/index.d.ts"pointing to built filesPotential Solutions
dts.resolvework with source.tsfiles directlyRelated
add-internal-types-package(archived)packages/internal/types/package.jsonpackages/arkenv/tsdown.config.tsandpackages/vite-plugin/tsdown.config.tsPriority
Low - This is a technical debt item. The current solution works, but it's not ideal.