Skip to content

Commit

Permalink
chore: relocate dist/components to dist/atomic/components
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Jan 15, 2025
1 parent 28b022b commit 1c7728d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/atomic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"require": "./dist/atomic/lang/*"
},
"./components": {
"types": "./dist/components/components/index.d.ts",
"import": "./dist/components/components/index.js"
"types": "./dist/atomic/components/components/index.d.ts",
"import": "./dist/atomic/components/components/index.js"
},
"./custom-elements-manifest": "./custom-elements.json"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/atomic/src/autoloader/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//@ts-ignore

Check warning on line 1 in packages/atomic/src/autoloader/index.ts

View workflow job for this annotation

GitHub Actions / Check with linter

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
//TODO: Simplify path to target some kind of index file?
import searchElementMap from '../../components/components/search/lazy-index.js';
import searchElementMap from '../components/components/search/lazy-index.js';

if (typeof window !== 'undefined') {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {Page, test as base} from '@playwright/test';
import {KnownErrorType} from '../../../../../dist/types/components/common/query-error/known-error-types';
import {
AxeFixture,
makeAxeBuilder,
} from '../../../../../playwright-utils/base-fixture';
import type {KnownErrorType} from '../../../common/query-error/known-error-types';
import {SearchBoxPageObject as SearchBox} from '../../atomic-commerce-search-box/e2e/page-object';
import {QueryErrorPageObject as QueryError} from './page-object';

Expand Down
2 changes: 1 addition & 1 deletion packages/atomic/stencil-proxy/atomic/atomic.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './autoloader/index.esm.js';

export * from './_atomic.esm.js';
export * from '../components/components/lazy-index.js';
export * from './components/components/lazy-index.js';
2 changes: 1 addition & 1 deletion packages/atomic/stencil-proxy/cjs/loader.cjs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const exportModule = require('./_loader.cjs.js');
const searchComponents = import(
'../components/components/search/lazy-index.js'
'../atomic/components/components/search/lazy-index.js'
);

const originalDefineCustomElements = exportModule.defineCustomElements;
Expand Down
2 changes: 1 addition & 1 deletion packages/atomic/stencil-proxy/esm/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../atomic/autoloader/index.esm.js';

export * from './_index.js';
export * as SearchComponentMap from '../components/components/search/lazy-index.js';
export * as SearchComponentMap from '../atomic/components/components/search/lazy-index.js';
2 changes: 1 addition & 1 deletion packages/atomic/stencil-proxy/esm/loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import searchComponents from '../components/components/search/lazy-index.js';
import searchComponents from '../atomic/components/components/search/lazy-index.js';
import {defineCustomElements as originalDefineCustomElements} from './_loader.js';

const defineCustomElements = function (...args) {
Expand Down
1 change: 1 addition & 0 deletions packages/atomic/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const config: Config = {
{
type: 'dist-custom-elements',
generateTypeDeclarations: false,
dir: 'dist/atomic/components',
customElementsExportBehavior: 'single-export-module',
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/atomic/tsconfig.lit.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"declarationMap": true,
"experimentalDecorators": true,
"useDefineForClassFields": false,
"outDir": "dist/components"
"outDir": "dist/atomic/components"
},
"files": [
"src/components/index.ts",
Expand Down

0 comments on commit 1c7728d

Please sign in to comment.