@upleveled/preflight 10.0.5 → 10.0.7
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
|
@@ -10,14 +10,13 @@ export const title = 'ESLint config is latest version';
|
|
|
10
10
|
|
|
11
11
|
export default async function eslintConfigIsValid() {
|
|
12
12
|
const { stdout: remoteVersion } =
|
|
13
|
-
await execa`
|
|
13
|
+
await execa`pnpm show eslint-config-upleveled version`;
|
|
14
14
|
|
|
15
15
|
let localVersion: string | undefined;
|
|
16
16
|
|
|
17
17
|
try {
|
|
18
|
-
const eslintConfigPackageJsonPath =
|
|
19
|
-
'eslint-config-upleveled/package.json'
|
|
20
|
-
);
|
|
18
|
+
const eslintConfigPackageJsonPath =
|
|
19
|
+
require.resolve('eslint-config-upleveled/package.json');
|
|
21
20
|
|
|
22
21
|
localVersion =
|
|
23
22
|
// Type assertion because we swallow the error anyway if
|
|
@@ -8,7 +8,7 @@ export const title = 'Preflight is latest version';
|
|
|
8
8
|
|
|
9
9
|
export default async function preflightIsLatestVersion() {
|
|
10
10
|
const { stdout: remoteVersion } =
|
|
11
|
-
await execa`
|
|
11
|
+
await execa`pnpm show @upleveled/preflight version`;
|
|
12
12
|
|
|
13
13
|
if (semver.gt(remoteVersion, preflightPackageJson.version)) {
|
|
14
14
|
throw new Error(
|
|
@@ -11,14 +11,13 @@ export const title = 'Stylelint config is latest version';
|
|
|
11
11
|
|
|
12
12
|
export default async function stylelintConfigIsValid() {
|
|
13
13
|
const { stdout: remoteVersion } =
|
|
14
|
-
await execa`
|
|
14
|
+
await execa`pnpm show stylelint-config-upleveled version`;
|
|
15
15
|
|
|
16
16
|
let localVersion: string | undefined;
|
|
17
17
|
|
|
18
18
|
try {
|
|
19
|
-
const stylelintConfigPackageJsonPath =
|
|
20
|
-
'stylelint-config-upleveled/package.json'
|
|
21
|
-
);
|
|
19
|
+
const stylelintConfigPackageJsonPath =
|
|
20
|
+
require.resolve('stylelint-config-upleveled/package.json');
|
|
22
21
|
|
|
23
22
|
localVersion =
|
|
24
23
|
// Type assertion because we swallow the error anyway if
|