@ryanatkn/gro 0.190.1 → 0.191.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/dist/check.task.d.ts.map +1 -1
- package/dist/check.task.js +9 -0
- package/package.json +3 -3
- package/src/lib/check.task.ts +12 -0
package/dist/check.task.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/check.task.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/check.task.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,OAAO,EAAY,KAAK,IAAI,EAAC,MAAM,WAAW,CAAC;AAG/C,cAAc;AACd,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;kBA6Bf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC,cAAc;AACd,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAwF3B,CAAC"}
|
package/dist/check.task.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { readdir } from 'node:fs/promises';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import { spawn } from '@fuzdev/fuz_util/process.js';
|
|
3
4
|
import { styleText as st } from 'node:util';
|
|
@@ -81,6 +82,14 @@ export const task = {
|
|
|
81
82
|
// Skip sync/gen/install since check handles those separately
|
|
82
83
|
await invoke_task('build', { sync: false, gen: false, install: false, force_build });
|
|
83
84
|
}
|
|
85
|
+
// Disallow TODO*.md files in the project root on CI.
|
|
86
|
+
if (process.env.CI === 'true') {
|
|
87
|
+
const root_files = await readdir('.');
|
|
88
|
+
const todo_files = root_files.filter((f) => f.startsWith('TODO') && f.endsWith('.md'));
|
|
89
|
+
if (todo_files.length > 0) {
|
|
90
|
+
throw new TaskError('Found disallowed TODO*.md files in project root: ' + todo_files.join(', '));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
84
93
|
if (workspace) {
|
|
85
94
|
const error_message = await git_check_clean_workspace();
|
|
86
95
|
if (error_message) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ryanatkn/gro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.191.0",
|
|
4
4
|
"description": "task runner and toolkit extending SvelteKit",
|
|
5
5
|
"motto": "generate, run, optimize",
|
|
6
6
|
"glyph": "🌰",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"zod": "^4.1.13"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@fuzdev/fuz_util": ">=0.
|
|
62
|
+
"@fuzdev/fuz_util": ">=0.49.2",
|
|
63
63
|
"@sveltejs/kit": "^2",
|
|
64
64
|
"esbuild": "^0.27.0",
|
|
65
65
|
"svelte": "^5",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@fuzdev/fuz_code": "^0.41.0",
|
|
84
84
|
"@fuzdev/fuz_css": "^0.47.0",
|
|
85
85
|
"@fuzdev/fuz_ui": "^0.181.1",
|
|
86
|
-
"@fuzdev/fuz_util": "^0.
|
|
86
|
+
"@fuzdev/fuz_util": "^0.49.2",
|
|
87
87
|
"@ryanatkn/eslint-config": "^0.9.0",
|
|
88
88
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
89
89
|
"@sveltejs/kit": "^2.50.1",
|
package/src/lib/check.task.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {readdir} from 'node:fs/promises';
|
|
1
2
|
import {z} from 'zod';
|
|
2
3
|
import {spawn} from '@fuzdev/fuz_util/process.js';
|
|
3
4
|
import {styleText as st} from 'node:util';
|
|
@@ -104,6 +105,17 @@ export const task: Task<Args> = {
|
|
|
104
105
|
await invoke_task('build', {sync: false, gen: false, install: false, force_build});
|
|
105
106
|
}
|
|
106
107
|
|
|
108
|
+
// Disallow TODO*.md files in the project root on CI.
|
|
109
|
+
if (process.env.CI === 'true') {
|
|
110
|
+
const root_files = await readdir('.');
|
|
111
|
+
const todo_files = root_files.filter((f) => f.startsWith('TODO') && f.endsWith('.md'));
|
|
112
|
+
if (todo_files.length > 0) {
|
|
113
|
+
throw new TaskError(
|
|
114
|
+
'Found disallowed TODO*.md files in project root: ' + todo_files.join(', '),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
107
119
|
if (workspace) {
|
|
108
120
|
const error_message = await git_check_clean_workspace();
|
|
109
121
|
if (error_message) {
|