stay-gold 1.1.3 → 1.1.5
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/dist/index.js +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
|
-
const
|
|
7
|
+
const filePath = path.dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
console.log(filePath);
|
|
8
9
|
const checks = [
|
|
9
|
-
{ name: "Bang Check", script: path.join(
|
|
10
|
-
{ name: "TODO Check", script: path.join(
|
|
11
|
-
{ name: "CSS Variables Check", script: path.join(
|
|
12
|
-
{ name: "CSS Named Colors Check", script: path.join(
|
|
10
|
+
{ name: "Bang Check", script: path.join(filePath, "bang.js") },
|
|
11
|
+
{ name: "TODO Check", script: path.join(filePath, "todos.js") },
|
|
12
|
+
{ name: "CSS Variables Check", script: path.join(filePath, "css-vars.js") },
|
|
13
|
+
{ name: "CSS Named Colors Check", script: path.join(filePath, "css-named-colors.js") },
|
|
13
14
|
];
|
|
14
15
|
async function runCheck(script, name) {
|
|
15
16
|
return new Promise((resolve) => {
|