Skip to content

Fixes for nelm chart init --ts#550

Merged
ilya-lesikov merged 1 commit intowerf:mainfrom
DmitryBochkarev:tschart-init
Jan 28, 2026
Merged

Fixes for nelm chart init --ts#550
ilya-lesikov merged 1 commit intowerf:mainfrom
DmitryBochkarev:tschart-init

Conversation

@DmitryBochkarev
Copy link
Contributor

@DmitryBochkarev DmitryBochkarev commented Jan 28, 2026

This is fixes for issues with Typescript initialization mentioned in #547

  • If values.yaml already exist in the chart the moment we call nelm chart init --ts, then there are no values.yaml generated and an image in the deployment becomes undefined:undefined. Fallback needed. Probably this: image: ($.Values.image?.repository ?? 'nginx') + ':' + ($.Values.image?.tag ?? 'latest')
  • Nelm SDK npm package name is wrong both in package.json and src files generated by nelm chart init --ts
  • --noEmit in scripts in package.json? Probably these scripts need revision

Also instead of just import now use import type to mark explicitly only types are
used this package can be build without installing any packages.

@DmitryBochkarev DmitryBochkarev force-pushed the tschart-init branch 3 times, most recently from d07423c to fccbf4d Compare January 28, 2026 10:21
If values.yaml already exist in the chart the moment we call nelm chart
init --ts, then there are no values.yaml generated and an image in the
deployment becomes undefined:undefined. Fallback needed. Probably this:
image: ($.Values.image?.repository ?? 'nginx') + ':' +
($.Values.image?.tag ?? 'latest')

Nelm SDK npm package name is wrong both in package.json and src files
generated by nelm chart init --ts

--noEmit in scripts in package.json? Probably these scripts need
revision

Also instead of just `import` now use `import type` so if only types are
used this package can be build without installing any packages, just
with werf.

Signed-off-by: Dmitry Bochkarev <dimabochkarev@gmail.com>
@ilya-lesikov ilya-lesikov merged commit d6b4b29 into werf:main Jan 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants