Skip to content

Commit

Permalink
refactor: create consts file
Browse files Browse the repository at this point in the history
  • Loading branch information
ignace committed Nov 4, 2023
1 parent b6b2f5b commit b67577c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/steps/convert-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
convertComponentNameToPath,
getComponentNameFromNestedPath,
} from '../utils/components.js';
import { BUILT_IN_HELPERS } from '../utils/constants.js';
import { isTypeScriptFile } from '../utils/general.js';

function replaceExtension(filePath: string): string {
Expand Down Expand Up @@ -75,8 +76,6 @@ function extractComponentsFromTemplate(template: string): string[] {
return components;
}

const BUILT_IN_HELPERS = ['concat', 'array', 'fn', 'get', 'hash'];

function extractHelpersFromTemplate(template: string): string[] {
const helpers: string[] = [];
const traverse = AST_HBS.traverse();
Expand Down
1 change: 1 addition & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const BUILT_IN_HELPERS = ['concat', 'array', 'fn', 'get', 'hash'];

0 comments on commit b67577c

Please sign in to comment.