@upleveled/preflight 8.0.1 → 8.0.3
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/bin/preflight.sh +16 -0
- package/package.json +7 -7
- package/src/checks/stylelint.ts +1 -1
- package/bin/preflight.ts +0 -3
package/bin/preflight.sh
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
script_dir="$(cd "$(dirname "$0")" && pwd)"
|
|
4
|
+
echo "script_dir: $script_dir"
|
|
5
|
+
|
|
6
|
+
# Workaround for incorrect path in pnpm shim
|
|
7
|
+
# https://github.com/pnpm/pnpm/issues/8704#issuecomment-2439618363
|
|
8
|
+
#
|
|
9
|
+
# TODO: Remove and switch back to "$script_dir/../node_modules/.bin/tsx"
|
|
10
|
+
# when the issue above is resolved
|
|
11
|
+
tsx_shim="$script_dir/../node_modules/.bin/tsx"
|
|
12
|
+
exec_command=$(awk '/^else$/{flag=1;next}/^fi$/{flag=0}flag' "$tsx_shim" | grep 'exec node')
|
|
13
|
+
cli_path=$(echo "$exec_command" | sed -E 's/^[[:space:]]*exec node[[:space:]]+"[^"]+(node_modules\/tsx\/[^"]+)".*/\1/')
|
|
14
|
+
cli_path="$(pnpm bin --global)/global/5/.pnpm/$cli_path"
|
|
15
|
+
|
|
16
|
+
node "$cli_path" "$script_dir/../src/index.ts"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upleveled/preflight",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"repository": "upleveled/preflight",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "UpLeveled (https://github.com/upleveled)",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"module": "./src/index.ts",
|
|
13
13
|
"types": "./src/index.ts",
|
|
14
14
|
"bin": {
|
|
15
|
-
"preflight": "./bin/preflight.
|
|
15
|
+
"preflight": "./bin/preflight.sh"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"./bin/preflight.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"cheerio": "1.0.0",
|
|
26
26
|
"depcheck": "1.4.7",
|
|
27
27
|
"domhandler": "5.0.3",
|
|
28
|
-
"execa": "9.4.
|
|
28
|
+
"execa": "9.4.1",
|
|
29
29
|
"listr2": "8.2.5",
|
|
30
30
|
"node-fetch": "3.3.2",
|
|
31
31
|
"p-reduce": "3.0.0",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"tsx": "4.19.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "22.7.
|
|
38
|
+
"@types/node": "22.7.7",
|
|
39
39
|
"@types/p-map": "2.0.0",
|
|
40
40
|
"@types/semver": "7.5.8",
|
|
41
|
-
"eslint": "9.
|
|
41
|
+
"eslint": "9.13.0",
|
|
42
42
|
"eslint-config-upleveled": "8.8.0",
|
|
43
43
|
"p-map": "7.0.2",
|
|
44
44
|
"prettier": "3.3.3",
|
|
45
|
-
"stylelint": "16.
|
|
45
|
+
"stylelint": "16.10.0",
|
|
46
46
|
"typescript": "5.6.3",
|
|
47
|
-
"vitest": "2.1.
|
|
47
|
+
"vitest": "2.1.3"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18"
|
package/src/checks/stylelint.ts
CHANGED
|
@@ -22,7 +22,7 @@ export default async function stylelintCheck() {
|
|
|
22
22
|
preferLocal: true,
|
|
23
23
|
})`stylelint **/*.{${supportedStylelintFileExtensions.join(
|
|
24
24
|
',',
|
|
25
|
-
)}} --max-warnings 0 --formatter json`;
|
|
25
|
+
)}} --ignore-path .gitignore --max-warnings 0 --formatter json`;
|
|
26
26
|
} catch (error) {
|
|
27
27
|
const { stderr } = error as { stderr: string };
|
|
28
28
|
|
package/bin/preflight.ts
DELETED