Modernize babel-plugin-django-gettext build and test.

Review Request #14863 — Created March 2, 2026 and submitted

Information

babel-plugin-django-gettext
master

Reviewers

I've recently been adding npm audit jobs in CI where it makes sense.
The babel-plugin-django-gettext pipeline flagged a bunch of issues,
primarily stemming from two very outdated packages: shelljs and
jasmine-node. We were also using a pretty old version of babel.

This change reorganizes the build and test setup to use much more modern
tooling. We're now using jasmine instead of jasmine-node, and
@babel/register as helper to do the compilation inline instead of
needing to run babel and then jasmine from a script. We also do the
build as a single step from the package.json file instead of having a
build script.

  • Ran unit tests.
  • Built a package and verified the result.
  • Ran npm audit.
Summary ID
Modernize babel-plugin-django-gettext build and test.
I've recently been adding `npm audit` jobs in CI where it makes sense. The babel-plugin-django-gettext pipeline flagged a bunch of issues, primarily stemming from two very outdated packages: `shelljs` and `jasmine-node`. We were also using a pretty old version of babel. This change reorganizes the build and test setup to use much more modern tooling. We're now using `jasmine` instead of `jasmine-node`, and `@babel/register` as helper to do the compilation inline instead of needing to run babel and then jasmine from a script. We also do the build as a single step from the package.json file instead of having a build script. Testing Done: - Ran unit tests. - Built a package and verified the result. - Ran npm audit.
wqurwnkpusznssovpurrkroqltmqxzvl
chipx86
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (c9fbed3)