@meistrari/mise-en-place 2.0.0-beta2 → 2.0.0
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/README.md +6 -10
- package/package.json +1 -1
- package/scripts/postinstall.sh +16 -5
package/README.md
CHANGED
|
@@ -26,17 +26,13 @@ If you already have a `Makefile`, you can manually include this project's Makefi
|
|
|
26
26
|
include ./node_modules/@meistrari/mise-en-place/Makefile
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
make mise-en-place
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
This will run the initial setup for all mise en place features.
|
|
35
|
-
|
|
36
|
-
> This is intended to be run once when starting a new project. If you run this command again, it may overwrite existing configuration files.
|
|
29
|
+
It will also setup the initial _mise-en-place_ in your project.
|
|
37
30
|
|
|
38
31
|
# Features
|
|
39
32
|
|
|
33
|
+
## Keep all @meistrari/* packages up to date
|
|
34
|
+
By adding the `postinstall` script, every time you run `npm install`, it will check for the latest versions of all `@meistrari/*` packages in your project and update them if necessary.
|
|
35
|
+
|
|
40
36
|
## Makefile
|
|
41
37
|
Commands with `##` after the target are 'public' commands and are intended to be used by developers and will show up in the help message.
|
|
42
38
|
The other commands are 'hidden' and are intended to be used by automations or by other 'public' commands.
|
|
@@ -49,7 +45,7 @@ Add the following code in your `eslint.config.mjs` to include this project's ESL
|
|
|
49
45
|
|
|
50
46
|
```ts
|
|
51
47
|
{
|
|
52
|
-
export { default } from '@
|
|
48
|
+
export { default } from '@meistrari/mise-en-place/eslint'
|
|
53
49
|
}
|
|
54
50
|
```
|
|
55
51
|
|
|
@@ -59,6 +55,6 @@ Add the following code in your `tsconfig.json` to include this project's TypeScr
|
|
|
59
55
|
|
|
60
56
|
```json
|
|
61
57
|
{
|
|
62
|
-
"extends": "./node_modules/@
|
|
58
|
+
"extends": "./node_modules/@meistrari/mise-en-place/tsconfig.base.json"
|
|
63
59
|
}
|
|
64
60
|
```
|
package/package.json
CHANGED
package/scripts/postinstall.sh
CHANGED
|
@@ -35,11 +35,22 @@ if [ -n "$MEISTRARI_LIBS_LIST" ]; then
|
|
|
35
35
|
echo "Found $MEISTRARI_LIBS_COUNT @meistrari/* libraries to update:"
|
|
36
36
|
echo "$MEISTRARI_LIBS_LIST"
|
|
37
37
|
|
|
38
|
-
test -f pnpm-lock.yaml
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
test -f
|
|
42
|
-
|
|
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
|
|
43
54
|
else
|
|
44
55
|
echo "No @meistrari/* libraries found in dependencies. Skipping update."
|
|
45
56
|
fi
|