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