@justeattakeaway/pie-webc 0.10.19 → 0.10.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +31 -31
- package/src/componentService.js +4 -0
- package/test/componentService.spec.js +3 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-webc",
|
|
3
3
|
"description": "Component bundle containing all PIE web components",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.21",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -810,36 +810,36 @@
|
|
|
810
810
|
"chalk": "5.6.2"
|
|
811
811
|
},
|
|
812
812
|
"dependencies": {
|
|
813
|
-
"@justeattakeaway/pie-assistive-text": "0.
|
|
814
|
-
"@justeattakeaway/pie-avatar": "0.4.
|
|
815
|
-
"@justeattakeaway/pie-breadcrumb": "0.
|
|
816
|
-
"@justeattakeaway/pie-button": "1.14.
|
|
817
|
-
"@justeattakeaway/pie-card": "0.27.
|
|
818
|
-
"@justeattakeaway/pie-checkbox": "1.
|
|
819
|
-
"@justeattakeaway/pie-checkbox-group": "1.0
|
|
820
|
-
"@justeattakeaway/pie-chip": "0.15.
|
|
821
|
-
"@justeattakeaway/pie-cookie-banner": "1.
|
|
822
|
-
"@justeattakeaway/pie-data-table": "0.3.
|
|
823
|
-
"@justeattakeaway/pie-divider": "1.5.
|
|
824
|
-
"@justeattakeaway/pie-form-label": "0.18.
|
|
825
|
-
"@justeattakeaway/pie-icon-button": "2.7.
|
|
826
|
-
"@justeattakeaway/pie-link": "1.3.
|
|
827
|
-
"@justeattakeaway/pie-list": "0.0.
|
|
828
|
-
"@justeattakeaway/pie-lottie-player": "0.4.
|
|
829
|
-
"@justeattakeaway/pie-modal": "1.26.
|
|
830
|
-
"@justeattakeaway/pie-notification": "0.24.
|
|
831
|
-
"@justeattakeaway/pie-radio": "1.1.
|
|
832
|
-
"@justeattakeaway/pie-radio-group": "1.0
|
|
833
|
-
"@justeattakeaway/pie-select": "0.
|
|
834
|
-
"@justeattakeaway/pie-spinner": "1.4.
|
|
835
|
-
"@justeattakeaway/pie-switch": "2.4.
|
|
836
|
-
"@justeattakeaway/pie-tabs": "0.1.
|
|
837
|
-
"@justeattakeaway/pie-tag": "0.22.
|
|
838
|
-
"@justeattakeaway/pie-text-input": "0.
|
|
839
|
-
"@justeattakeaway/pie-textarea": "0.
|
|
840
|
-
"@justeattakeaway/pie-thumbnail": "0.8.
|
|
841
|
-
"@justeattakeaway/pie-toast": "1.0.
|
|
842
|
-
"@justeattakeaway/pie-toast-provider": "1.0.
|
|
813
|
+
"@justeattakeaway/pie-assistive-text": "1.0.0",
|
|
814
|
+
"@justeattakeaway/pie-avatar": "0.4.38",
|
|
815
|
+
"@justeattakeaway/pie-breadcrumb": "1.0.0",
|
|
816
|
+
"@justeattakeaway/pie-button": "1.14.4",
|
|
817
|
+
"@justeattakeaway/pie-card": "0.27.3",
|
|
818
|
+
"@justeattakeaway/pie-checkbox": "1.3.0",
|
|
819
|
+
"@justeattakeaway/pie-checkbox-group": "1.1.0",
|
|
820
|
+
"@justeattakeaway/pie-chip": "0.15.35",
|
|
821
|
+
"@justeattakeaway/pie-cookie-banner": "1.9.0",
|
|
822
|
+
"@justeattakeaway/pie-data-table": "0.3.18",
|
|
823
|
+
"@justeattakeaway/pie-divider": "1.5.25",
|
|
824
|
+
"@justeattakeaway/pie-form-label": "0.18.26",
|
|
825
|
+
"@justeattakeaway/pie-icon-button": "2.7.19",
|
|
826
|
+
"@justeattakeaway/pie-link": "1.3.35",
|
|
827
|
+
"@justeattakeaway/pie-list": "0.0.29",
|
|
828
|
+
"@justeattakeaway/pie-lottie-player": "0.4.5",
|
|
829
|
+
"@justeattakeaway/pie-modal": "1.26.11",
|
|
830
|
+
"@justeattakeaway/pie-notification": "0.24.3",
|
|
831
|
+
"@justeattakeaway/pie-radio": "1.1.15",
|
|
832
|
+
"@justeattakeaway/pie-radio-group": "1.1.0",
|
|
833
|
+
"@justeattakeaway/pie-select": "0.9.0",
|
|
834
|
+
"@justeattakeaway/pie-spinner": "1.4.17",
|
|
835
|
+
"@justeattakeaway/pie-switch": "2.4.2",
|
|
836
|
+
"@justeattakeaway/pie-tabs": "0.1.25",
|
|
837
|
+
"@justeattakeaway/pie-tag": "0.22.22",
|
|
838
|
+
"@justeattakeaway/pie-text-input": "0.30.0",
|
|
839
|
+
"@justeattakeaway/pie-textarea": "0.19.0",
|
|
840
|
+
"@justeattakeaway/pie-thumbnail": "0.8.31",
|
|
841
|
+
"@justeattakeaway/pie-toast": "1.0.2",
|
|
842
|
+
"@justeattakeaway/pie-toast-provider": "1.0.2"
|
|
843
843
|
},
|
|
844
844
|
"sideEffects": [
|
|
845
845
|
"**/*.js"
|
package/src/componentService.js
CHANGED
|
@@ -177,6 +177,10 @@ export class ComponentService {
|
|
|
177
177
|
const componentName = folder.replace('pie-', '');
|
|
178
178
|
const packageName = `@justeattakeaway/${folder}`;
|
|
179
179
|
const componentPackageJsonPath = this.path.join(fullFolderPath, 'package.json');
|
|
180
|
+
if (!this.fs.existsSync(componentPackageJsonPath)) {
|
|
181
|
+
console.warn(chalk.yellow(`Skipping ${folder}: no package.json found`));
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
180
184
|
const componentPackageJsonData = this.fs.readFileSync(componentPackageJsonPath, 'utf-8');
|
|
181
185
|
const componentPackageJson = JSON.parse(componentPackageJsonData);
|
|
182
186
|
|
|
@@ -27,6 +27,7 @@ describe('ComponentService', () => {
|
|
|
27
27
|
|
|
28
28
|
// Suppress console output
|
|
29
29
|
vi.spyOn(console, 'info').mockImplementation(() => {}); // eslint-disable-line @typescript-eslint/no-empty-function
|
|
30
|
+
vi.spyOn(console, 'warn').mockImplementation(() => {}); // eslint-disable-line @typescript-eslint/no-empty-function
|
|
30
31
|
});
|
|
31
32
|
|
|
32
33
|
describe('ensureDirectoryExists', () => {
|
|
@@ -197,6 +198,8 @@ describe('ComponentService', () => {
|
|
|
197
198
|
|
|
198
199
|
fsMock.readFileSync.mockReturnValue('{"version": "1.1.1"}'); // Component package.json
|
|
199
200
|
fsMock.readdirSync.mockReturnValue(['pie-component-name']); // Default, overridden by some tests
|
|
201
|
+
// Return true for package.json checks, false for src directory checks (sub-components)
|
|
202
|
+
fsMock.existsSync.mockImplementation((p) => !p.endsWith('/src'));
|
|
200
203
|
});
|
|
201
204
|
|
|
202
205
|
it('should ignore non-component folders', () => {
|