ultimate_turbo_modal 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate_turbo_modal",
3
- "version": "0.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "The ultimate Turbo / Stimulus / Hotwire modal window for Rails",
5
5
  "main": "dist/ultimate_turbo_modal.min.js",
6
6
  "module": "dist/ultimate_turbo_modal.min.js",
@@ -2,15 +2,13 @@
2
2
  set -e
3
3
 
4
4
  # Check for uncommitted changes
5
- echo "Checking for uncommitted changes..."
6
5
  if ! git diff --quiet; then
7
6
  echo "There are uncommitted changes. Aborting."
8
7
  exit 1
9
8
  fi
10
- echo "No uncommitted changes found."
11
9
 
12
10
  # Update version
13
- echo "Updating version..."
11
+ echo "Updating version in package.json..."
14
12
  npm run update-version
15
13
 
16
14
  # Install dependencies
@@ -22,7 +20,7 @@ echo "Building project..."
22
20
  npm run build
23
21
 
24
22
  # Add, commit, and push changes
25
- VERSION=$(cat VERSION)
23
+ VERSION=$(cat ../VERSION)
26
24
  echo "Adding changes to git..."
27
25
  git add .
28
26
  echo "Committing changes (Release NPM v$VERSION)..."
@@ -34,4 +32,4 @@ git push
34
32
  echo "Publishing to npm..."
35
33
  npm publish
36
34
 
37
- echo "Release complete!"
35
+ echo "Release complete!"
@@ -1,7 +1,7 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
3
 
4
- const versionFilePath = path.resolve(__dirname, '..', 'VERSION');
4
+ const versionFilePath = path.resolve(__dirname, '..', '..', 'VERSION');
5
5
  const packageJsonPath = path.resolve(__dirname, '..', 'package.json');
6
6
 
7
7
  // Read version from VERSION file
@@ -18,4 +18,4 @@ if (packageJson.version !== version) {
18
18
  console.log(`Updated package.json version to ${version}`);
19
19
  } else {
20
20
  console.log(`package.json version (${packageJson.version}) is already up to date.`);
21
- }
21
+ }