Skip to content

Commit

Permalink
fix: fix import path issue after renaming
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Dec 8, 2024
1 parent 9d067bb commit b806459
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/commands/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { deployStack } from '../stack';
import { constructActionContext, logger } from '../common';
import { parseYaml } from '../parses';
import { parseYaml } from '../parser';

export const deploy = async (
stackName: string,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TemplateFormat } from '../types';
import yaml from 'yaml';
import { generateStackTemplate } from '../stack/deploy';
import { constructActionContext, logger } from '../common';
import { parseYaml } from '../parses';
import { parseYaml } from '../parser';

export const template = (
stackName: string,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/validate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { constructActionContext, logger } from '../common';
import { parseYaml } from '../parses';
import { parseYaml } from '../parser';

export const validate = (location: string | undefined, stage: string | undefined) => {
const context = constructActionContext({ location, stage });
Expand Down
2 changes: 1 addition & 1 deletion src/parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { parseEvent } from './eventParser';
import { parseDatabase } from './databaseParser';
import { parseTag } from './tagParser';
import { parse } from 'yaml';
import { validateYaml } from '../validations';
import { validateYaml } from '../validator';

const validateExistence = (path: string) => {
if (!existsSync(path)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/parses/parse.test.ts → tests/parser/parse.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path';
import { parseYaml } from '../../src/parses';
import { parseYaml } from '../../src/parser';

describe('unit test for parse', () => {
describe('domain - databases', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/validator/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs';
import * as path from 'node:path';
import { parse } from 'yaml';
import { ServerlessIacRaw } from '../../src/types';
import { validateYaml } from '../../src/validations';
import { validateYaml } from '../../src/validator';

const jsonIac = parse(
readFileSync(path.resolve(__dirname, '../fixtures/serverless-insight.yml'), 'utf8'),
Expand Down

0 comments on commit b806459

Please sign in to comment.