Skip to content

Commit

Permalink
🧪
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultyou committed Oct 27, 2024
1 parent 78a2648 commit 4302e6d
Show file tree
Hide file tree
Showing 31 changed files with 2,371 additions and 1,612 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default [
allowNamedFunctions: true
}
],
'func-style': ['error', 'declaration'],
'func-style': ['error', 'declaration', { allowArrowFunctions: true } ],
'no-multi-spaces': 'error',
'no-multiple-empty-lines': [
'error',
Expand Down
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"update": "ncu -i",
"update-metadata": "ts-node src/app/controllers/update-metadata.ts",
"update-views": "ts-node src/app/controllers/update-views.ts",
"validate-yaml": "yamllint '**/*.yml'"
"validate-yaml": "yamllint '**/*.yml'",
"postbuild": "chmod +x ./dist/cli/index.js"
},
"keywords": [
"github-actions",
Expand All @@ -49,6 +50,7 @@
"cli-spinner": "0.2.10",
"commander": "12.1.0",
"dotenv": "16.4.5",
"fp-ts": "2.16.9",
"fs-extra": "11.2.0",
"js-yaml": "4.1.0",
"nunjucks": "3.2.4",
Expand Down
6 changes: 3 additions & 3 deletions src/app/utils/yaml-operations.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as yaml from 'js-yaml';

import { PromptMetadata, Variable } from '../../shared/types';
import { PromptMetadata, PromptVariable } from '../../shared/types';
import logger from '../../shared/utils/logger';
import { appConfig } from '../config/app-config';

Expand Down Expand Up @@ -73,8 +73,8 @@ export function isValidMetadata(obj: unknown): obj is PromptMetadata {
return true;
}

function isValidVariable(obj: unknown): obj is Variable {
const variable = obj as Partial<Variable>;
function isValidVariable(obj: unknown): obj is PromptVariable {
const variable = obj as Partial<PromptVariable>;
return (
typeof variable === 'object' &&
variable !== null &&
Expand Down
Loading

0 comments on commit 4302e6d

Please sign in to comment.