Skip to content

ci: fix slack notification script failing due to missing ts-node #25062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

devversion
Copy link
Member

TS node is no longer automatically registering in the ng-dev tool, so
the config cannot be loaded anymore. Callers of getConfig() are
required to manually wire up TS-Node, mostly now because ESM ts-node
cannot be registered at runtime anymore. So, the fix here is to
either run the slack notify script with node --loader ts-node/esm or
just run it using ts-node directly, while writing it in TS.

The latter one seems the most reasonable.

TS node is no longer automatically registering in the `ng-dev` tool, so
the config cannot be loaded anymore. Callers of `getConfig()` are
required to manually wire up TS-Node, mostly now because ESM ts-node
**cannot** be registered at runtime anymore. So, the fix here is to
either run the slack notify script with `node --loader ts-node/esm` or
just run it using `ts-node` directly, while writing it in TS.

The latter one seems the most reasonable.
@devversion devversion requested a review from crisbeto June 11, 2022 12:14
@devversion devversion requested a review from a team as a code owner June 11, 2022 12:14
@devversion devversion added action: merge The PR is ready for merge by the caretaker merge safe target: patch This PR is targeted for the next patch release labels Jun 11, 2022
@devversion devversion merged commit 7f5bff7 into angular:main Jun 11, 2022
devversion added a commit that referenced this pull request Jun 11, 2022
…25062)

TS node is no longer automatically registering in the `ng-dev` tool, so
the config cannot be loaded anymore. Callers of `getConfig()` are
required to manually wire up TS-Node, mostly now because ESM ts-node
**cannot** be registered at runtime anymore. So, the fix here is to
either run the slack notify script with `node --loader ts-node/esm` or
just run it using `ts-node` directly, while writing it in TS.

The latter one seems the most reasonable.

(cherry picked from commit 7f5bff7)
@devversion devversion deleted the fix-slack-notifications-missing-ts-node branch June 11, 2022 14:22
devversion added a commit to devversion/material2 that referenced this pull request Jun 11, 2022
devversion added a commit to devversion/material2 that referenced this pull request Jun 11, 2022
devversion added a commit that referenced this pull request Jun 11, 2022
devversion added a commit that referenced this pull request Jun 11, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants