From 2097ea4e6378e888f7590dd32325ffcdffbfc5b1 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 23 Jan 2025 21:15:51 +0000 Subject: [PATCH] Make bundler actions generically named --- package.json | 2 +- pyproject.toml | 2 +- scripts/{rollup_build_hook.py => bundler_build_hook.py} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename scripts/{rollup_build_hook.py => bundler_build_hook.py} (88%) diff --git a/package.json b/package.json index f6fc6b7bbe..cd9ae75a23 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "scripts": { "test": "mocha test-js --reporter spec", - "bundle-rollup": "rollup --bundleConfigAsCjs -c" + "bundle": "rollup --bundleConfigAsCjs -c" }, "type": "module", "devDependencies": { diff --git a/pyproject.toml b/pyproject.toml index 9f1db65261..553f55a20d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,7 +94,7 @@ source = "vcs" [tool.hatch.build.hooks.custom] -path = "scripts/rollup_build_hook.py" +path = "scripts/bundler_build_hook.py" [tool.hatch.build.hooks.vcs] diff --git a/scripts/rollup_build_hook.py b/scripts/bundler_build_hook.py similarity index 88% rename from scripts/rollup_build_hook.py rename to scripts/bundler_build_hook.py index 1f113ae325..1c4a1c28ae 100644 --- a/scripts/rollup_build_hook.py +++ b/scripts/bundler_build_hook.py @@ -17,4 +17,4 @@ def initialize(self, version, build_data): if path.exists(): shutil.rmtree(path) subprocess.check_output("npm install", shell=True) - subprocess.check_output("npm run bundle-rollup", shell=True) + subprocess.check_output("npm run bundle", shell=True)