@meistrari/mise-en-place 1.1.1 → 1.2.0-beta2

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@meistrari/mise-en-place",
3
- "version": "1.1.1",
3
+ "version": "1.2.0-beta2",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/meistrari/mise-en-place.git"
8
8
  },
9
9
  "scripts": {
10
- "postinstall": "test -f Makefile || echo 'include ./node_modules/@meistrari/mise-en-place/Makefile' > Makefile",
10
+ "postinstall": "./postinstall.sh",
11
11
  "build": "unbuild"
12
12
  },
13
13
  "exports": {
@@ -20,7 +20,8 @@
20
20
  "dist",
21
21
  "Makefile",
22
22
  ".editorconfig",
23
- "tsconfig.json"
23
+ "tsconfig.json",
24
+ "postinstall.sh"
24
25
  ],
25
26
  "keywords": [],
26
27
  "author": "",
package/postinstall.sh ADDED
@@ -0,0 +1,32 @@
1
+ #!/bin/sh
2
+
3
+ test -f Makefile && echo 'Makefile already exists. Skipping initial Makefile generation' || echo 'include ./node_modules/@meistrari/mise-en-place/Makefile\n' > Makefile
4
+
5
+ WORKSPACE_PATTERNS=$(jq -r '.workspaces[]? // empty' package.json 2>/dev/null)
6
+
7
+ # If workspaces exist, find package.json files matching the patterns, otherwise just use root
8
+ if [ -n "$WORKSPACE_PATTERNS" ]; then
9
+ PACKAGE_JSONS="package.json"
10
+ for pattern in $WORKSPACE_PATTERNS; do
11
+ # Use find with the workspace pattern (e.g., "packages/*" becomes "packages/*/package.json")
12
+ PACKAGE_JSONS="$PACKAGE_JSONS $(find $pattern -maxdepth 1 -name "package.json" 2>/dev/null)"
13
+ done
14
+ echo "Found workspace package.json files: $PACKAGE_JSONS"
15
+ MEISTRARI_LIBS_LIST=$(echo "$PACKAGE_JSONS" | xargs jq -r '(.dependencies // {}, .devDependencies // {}) | keys[] | select(startswith("@meistrari/"))' 2>/dev/null | sort -u)
16
+ else
17
+ # No workspaces, just check root package.json
18
+ MEISTRARI_LIBS_LIST=$(jq -r '(.dependencies // {}, .devDependencies // {}) | keys[] | select(startswith("@meistrari/"))' package.json 2>/dev/null | sort -u)
19
+ fi
20
+
21
+ log_header () {
22
+ echo "File '$1' present. Updating @meistrari/* libraries..."
23
+ }
24
+
25
+ if [ -n "$MEISTRARI_LIBS_LIST" ]; then
26
+ test -f pnpm-lock.yaml && (log_header "pnpm-lock.yaml" && pnpm update $MEISTRARI_LIBS_LIST --ignore-scripts -r)
27
+ test -f bun.lock && (log_header "bun.lock" && bun update $MEISTRARI_LIBS_LIST --ignore-scripts -r)
28
+ test -f bun.lockb && (log_header "bun.lockb" && bun update $MEISTRARI_LIBS_LIST --ignore-scripts -r)
29
+ test -f package-lock.json && (log_header "package-lock.json" && npm update $MEISTRARI_LIBS_LIST --ignore-scripts)
30
+ test -f yarn.lock && (log_header "yarn.lock" && yarn up $MEISTRARI_LIBS_LIST --ignore-scripts)
31
+ fi
32
+
package/tsconfig.json CHANGED
@@ -13,5 +13,8 @@
13
13
  "noUnusedParameters": true,
14
14
 
15
15
  "skipLibCheck": true
16
- }
16
+ },
17
+ "exclude": [
18
+ "*.stories.ts"
19
+ ]
17
20
  }