transpic-cli 0.1.0 → 0.1.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.
package/Cargo.lock CHANGED
@@ -1165,7 +1165,7 @@ dependencies = [
1165
1165
 
1166
1166
  [[package]]
1167
1167
  name = "transpic-cli"
1168
- version = "0.1.0"
1168
+ version = "0.1.1"
1169
1169
  dependencies = [
1170
1170
  "clap",
1171
1171
  "transpic-core",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "transpic-cli"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  edition = "2024"
5
5
  publish = false
6
6
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "transpic-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A fast image manipulation CLI tool",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
7
7
  "transpic": "./src/cli.js"
8
8
  },
9
9
  "scripts": {
10
- "build": "cargo build --release"
10
+ "build": "cargo build --release && node -e \"const fs = require('fs'); if (!fs.existsSync('./bin')) fs.mkdirSync('./bin'); const b = process.platform === 'win32' ? 'transpic-cli.exe' : 'transpic-cli'; fs.copyFileSync('./target/release/' + b, './bin/' + b);\""
11
11
  },
12
12
  "keywords": [
13
13
  "cli",
package/src/cli.js CHANGED
@@ -5,11 +5,11 @@ const path = require('path');
5
5
  const fs = require('fs');
6
6
 
7
7
  const binaryName = process.platform === 'win32' ? 'transpic-cli.exe' : 'transpic-cli';
8
- const binaryPath = path.join(__dirname, '..', 'target', 'release', binaryName);
8
+ const binaryPath = path.join(__dirname, '..', 'bin', binaryName);
9
9
 
10
10
  if (!fs.existsSync(binaryPath)) {
11
11
  console.error("Error: Rust binary not found.");
12
- console.error("Please run 'npm run build' or 'cargo build --release' first.");
12
+ console.error("Please make sure the package was built correctly.");
13
13
  process.exit(1);
14
14
  }
15
15