actions / actions/toolkit

Core filesystem path helper functions are not emitted by tsc

Open
#1,170 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

I am unable to import/require the filesystem path helpers mentioned here: https://github.com/actions/toolkit/tree/main/packages/core#filesystem-path-helpers

It appears that TypeScript is not emitting the exports from this line during compilation: https://github.com/actions/toolkit/blob/bc4be505973a6a7344bfd71e1b32f77e1755310c/packages/core/src/core.ts#L391

I suspect it's due to the fancy, newfangled namespaced export. The module target must be set to es2020 for this syntax to work: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#export--as-ns-syntax

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the filesystem-path helper export in packages/core/src/core.ts at the referenced line, then inspect the TypeScript compilation settings for the core package. Verify the emitted package output and confirm that the helpers can be imported or required as documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.