From 8502125cbc480d88cc8a4e141a0ce08e4591878e Mon Sep 17 00:00:00 2001 From: Tyler Baur Date: Tue, 23 Apr 2024 14:00:20 -0500 Subject: [PATCH] update version when building --- justfile | 1 + package.json | 2 +- scripts/make_version.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 349bc23..706d795 100755 --- a/justfile +++ b/justfile @@ -9,6 +9,7 @@ clean-js: # Generate components and build the bundle build: clean-js + python scripts/make_version.py pnpm run build # Build the webpack bundle diff --git a/package.json b/package.json index 35773d3..1734eef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dash_query_builder", - "version": "0.6.0", + "version": "1.0.0", "description": "Component for Dash based on react-awesome-query-builder", "main": "index.ts", "bugs": { diff --git a/scripts/make_version.py b/scripts/make_version.py index bc8c9a7..1b1cba7 100644 --- a/scripts/make_version.py +++ b/scripts/make_version.py @@ -14,4 +14,4 @@ _version = package["version"] with _version_file.open("w") as f: - f.write(f"__version__ = '{_version}'") + f.write(f'__version__ = "{_version}"')