Closed NullVoxPopuli closed 10 months ago
I'm not so sure
I made an attempt here: https://github.com/tildeio/ember-element-helper/pull/112 but no dice -- /// reference
is still present in the declarations
output
@gitKrystan @NullVoxPopuli the strange thing is that https://www.npmjs.com/package/ember-modifier?activeTab=code does not suffer from such issue and no /// reference
present in published code
ember-modifier is using rollup-plugin-typescript to generate the type declarations: https://github.com/ember-modifier/ember-modifier/blob/main/ember-modifier/rollup.config.mjs#L28
so perhaps there is some secret its doing that we need to find for folks directly using tsc
/ glint
to generate their declarations
ember-modifier is using rollup-plugin-typescript to generate the type declarations: https://github.com/ember-modifier/ember-modifier/blob/main/ember-modifier/rollup.config.mjs#L28
I planned to update ember-modifier
setup with latest blueprint, will see what the output will be
Made a tool to help out in the future: https://github.com/NullVoxPopuli/fix-bad-declaration-output
I think everything would be fine if just these
/// reference
lines weren't present:Not really sure why ts or glint would do this, as ember-source is marked as a peerDependency