@meistrari/mise-en-place 2.0.0-beta1 → 2.0.0-beta3

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/Makefile CHANGED
@@ -18,5 +18,5 @@ mise-en-place: .editorconfig ## Setup the mise en place to start cooking
18
18
  .PHONY: help
19
19
  help:
20
20
  @echo "Make tasks:"
21
- @grep -hE '^[%a-zA-Z_-]+:.*?## .*$$' Makefile ./node_modules/$(MISE_EN_PLACE_PACKAGE_NAME)/Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m %-17s\033[0m %s\n", $$1, $$2}'
21
+ @grep -hE '^[%a-zA-Z_-]+:.*?## .*$$' Makefile ./node_modules/$(_MISE_EN_PLACE_PACKAGE_NAME)/Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m %-17s\033[0m %s\n", $$1, $$2}'
22
22
  @echo ""
package/dist/cli.mjs CHANGED
@@ -4,11 +4,11 @@ import { fileURLToPath } from 'node:url';
4
4
  import { dirname, join } from 'node:path';
5
5
  import { argv } from 'node:process';
6
6
 
7
- const __dirname$1 = dirname(fileURLToPath(import.meta.url));
8
7
  const [command] = argv.slice(2);
8
+ const __dirname$1 = dirname(fileURLToPath(import.meta.url));
9
9
  if (command === "postinstall") {
10
10
  const scriptPath = join(__dirname$1, "..", "scripts", "postinstall.sh");
11
- execSync(`sh "${scriptPath}"`, { stdio: "inherit" });
11
+ execSync(scriptPath, { stdio: "inherit" });
12
12
  process.exit(0);
13
13
  }
14
14
  throw new Error(`Unknown command: ${command}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/mise-en-place",
3
- "version": "2.0.0-beta1",
3
+ "version": "2.0.0-beta3",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,11 +31,26 @@ log_header () {
31
31
  }
32
32
 
33
33
  if [ -n "$MEISTRARI_LIBS_LIST" ]; then
34
- test -f pnpm-lock.yaml && (log_header "pnpm-lock.yaml" && pnpm update $MEISTRARI_LIBS_LIST --ignore-scripts -r)
35
- test -f bun.lock && (log_header "bun.lock" && bun update $MEISTRARI_LIBS_LIST --ignore-scripts -r)
36
- test -f bun.lockb && (log_header "bun.lockb" && bun update $MEISTRARI_LIBS_LIST --ignore-scripts -r)
37
- test -f package-lock.json && (log_header "package-lock.json" && npm update $MEISTRARI_LIBS_LIST --ignore-scripts)
38
- test -f yarn.lock && (log_header "yarn.lock" && yarn up $MEISTRARI_LIBS_LIST --ignore-scripts)
34
+ MEISTRARI_LIBS_COUNT=$(echo "$MEISTRARI_LIBS_LIST" | wc -l | tr -d ' ')
35
+ echo "Found $MEISTRARI_LIBS_COUNT @meistrari/* libraries to update:"
36
+ echo "$MEISTRARI_LIBS_LIST"
37
+
38
+ if test -f pnpm-lock.yaml; then
39
+ log_header "pnpm-lock.yaml"
40
+ pnpm update $MEISTRARI_LIBS_LIST --ignore-scripts -r
41
+ elif test -f bun.lock || test -f bun.lockb; then
42
+ log_header "bun.lock or bun.lockb"
43
+ bun update $MEISTRARI_LIBS_LIST --ignore-scripts -r
44
+ elif test -f yarn.lock; then
45
+ log_header "yarn.lock"
46
+ yarn up $MEISTRARI_LIBS_LIST --ignore-scripts -r
47
+ elif test -f package-lock.json; then
48
+ log_header "package-lock.json"
49
+ npm update $MEISTRARI_LIBS_LIST --ignore-scripts
50
+ else
51
+ echo "No recognized lock file found (pnpm-lock.yaml, yarn.lock, package-lock.json)"
52
+ exit 1
53
+ fi
39
54
  else
40
55
  echo "No @meistrari/* libraries found in dependencies. Skipping update."
41
56
  fi