Skip to content

Remove LICENSE generation and --FOR-TESTS flag#424

Open
jfmengels wants to merge 2 commits into
mainfrom
remove-for-tests
Open

Remove LICENSE generation and --FOR-TESTS flag#424
jfmengels wants to merge 2 commits into
mainfrom
remove-for-tests

Conversation

@jfmengels
Copy link
Copy Markdown
Owner

  • When running elm-review new-package, the LICENSE file will now not be generated automatically. Instead, a manual step has been added in the generated MAINTENANCE.md file.
  • Anonymize version and path in test code rather than in shipped code
  • Remove --FOR-TESTS flag and options.forTests.

Comment thread test/run.mjs
import {glob} from 'tinyglobby';
import {$, cd} from 'zx';
// @ts-expect-error Warning about using "assert" requiring different "module" value in TS. Haven't figured out how.
import packageJson from '../package.json' assert {type: 'json'};
Copy link
Copy Markdown
Contributor

@lishaduck lishaduck May 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assert isn't supported by v16, is it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nope, it was backported 👍🏻

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a look tho

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, yeah, a ts-expect-error is the best we'll get. TS parses assert the same as with (with some caveats), and is correctly flagging that with is only available in 18+, but we're not using assert. Probably a TS bug but there's also almost certainly not appetite for fixing it at this point.

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