Skip to content

Commit

Permalink
build: fix build config
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation committed May 15, 2024
1 parent 72df989 commit 3f99a33
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"lint:yml": "eslint \"**/*.{yml,yaml}\"",
"lint:styles": "stylelint \"**/*.scss\"",
"lint:lit": "yarn lit-analyzer \"src/**/*.ts\"",
"lint:circular-imports": "madge --circular --extensions ts ./src",
"lint:circular-imports": "madge --circular --ts-config ./tsconfig.json --extensions ts ./src",
"lint:tsc": "npm-run-all --sequential lint:tsc:*",
"lint:tsc:components": "tsc --noEmit --project src/components/tsconfig.json",
"lint:tsc:components-spec": "tsc --noEmit --project src/components/tsconfig.spec.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LitElement, html, type TemplateResult, type CSSResultGroup, nothing } f
import { customElement, property } from 'lit/decorators.js';

import type { SbbRadioButtonGroupElement } from '../../../../../../components/radio-button/radio-button-group/radio-button-group.js';
import type { FailedFiles } from '../../../../../interfaces.js';
import type { FailedFiles } from '../../../../interfaces.js';

import style from './fullscreen-diff.scss?lit&inline';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { customElement, property, state } from 'lit/decorators.js';

import { SbbOverlayElement } from '../../../../../components/overlay/overlay.js';
import type { SbbToggleCheckElement } from '../../../../../components/toggle-check/toggle-check.js';
import type { FailedFiles } from '../../../../interfaces.js';
import type { FailedFiles } from '../../../interfaces.js';

import style from './image-diff.scss?lit&inline';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/visual-regression-app/src/screenshots.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line import-x/no-unresolved
import { screenshotsRaw } from 'virtual:screenshots';

import type { FailedFiles, ScreenshotMap } from '../interfaces.js';
import type { FailedFiles, ScreenshotMap } from './interfaces.js';

const viewportOrder = ['zero', 'micro', 'small', 'medium', 'large', 'wide', 'ultra'];

Expand Down
12 changes: 0 additions & 12 deletions src/visual-regression-app/src/vite-env.d.ts

This file was deleted.

8 changes: 6 additions & 2 deletions src/visual-regression-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "../..",
"baseUrl": "."
"baseUrl": ".",
"paths": {
"@sbb-esta/lyne-components": ["../components"],
"@sbb-esta/lyne-components/*": ["../components/*"]
}
},
"include": ["./**/*.ts", "./src/vite-env.d.ts"],
"include": ["./**/*.ts", "../vite-env.d.ts"],
"exclude": ["vite.config.ts"]
}
2 changes: 1 addition & 1 deletion src/visual-regression-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { distDir } from '../../tools/vite/index.js';
import rootConfig from '../../vite.config.js';

import type { FailedFiles } from './interfaces.js';
import type { FailedFiles } from './src/interfaces.js';

const packageRoot = new URL('.', import.meta.url);
const screenshotsDir = new URL(`./screenshots/`, distDir);
Expand Down
5 changes: 5 additions & 0 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ declare module '*?lit&inline' {
declare module '@custom-elements-manifest/analyzer/cli' {
export const cli: (...args) => Promise<void>;
}

declare module 'virtual:screenshots' {

export const screenshotsRaw: import('./visual-regression-app/src/interfaces').ScreenshotMap;
}

0 comments on commit 3f99a33

Please sign in to comment.