flagon-useralejs icon indicating copy to clipboard operation
flagon-useralejs copied to clipboard

chore(build): Remove version numbers from build artifact names

Open EandrewJones opened this issue 1 year ago • 2 comments

Problem

Build artifact names contain the version number. This creates a dependency between our test suite (see here, for example) and the version number. Not only is this a blocker for automation, it will create flaky tests on every release.

Solution

Remove version numbers from the build artifact name. The only place version numbers need be included is on the release channels (NPM, apache), not in built js files themselves.

EandrewJones avatar Oct 09 '24 17:10 EandrewJones

even if i remove the version numbers they get added once i run the npm run build

Suvendu-UI avatar Feb 08 '25 10:02 Suvendu-UI

Hey @Suvendu-UI. I should've been more clear in this ticket. The reason the version keeps showing up in the build artifacts when you run npm run build is because it is our build tool, rollup, that's configured to interpolate the version number into the created file names.

See here in our rollup.config.js file. This is what needs to be removed in order to remove the version number from the build artifact names.

EandrewJones avatar Feb 08 '25 17:02 EandrewJones