@justeattakeaway/pie-webc 0.0.0-snapshot-release-20250314132605 → 0.0.0-snapshot-release-20250314140154
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@justeattakeaway/pie-select/dist/pie-select-option';
|
|
1
|
+
export * from '@justeattakeaway/pie-select/dist/pie-select-option/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@justeattakeaway/pie-select/dist/pie-select-option';
|
|
1
|
+
export * from '@justeattakeaway/pie-select/dist/pie-select-option/index.js';
|
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.0.0-snapshot-release-
|
|
4
|
+
"version": "0.0.0-snapshot-release-20250314140154",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -185,14 +185,14 @@
|
|
|
185
185
|
"types": "./react/select.d.ts"
|
|
186
186
|
},
|
|
187
187
|
"./components/select-option.js": {
|
|
188
|
-
"import": "./components/select
|
|
189
|
-
"require": "./components/select
|
|
190
|
-
"types": "./components/select
|
|
188
|
+
"import": "./components/select-option.js",
|
|
189
|
+
"require": "./components/select-option.js",
|
|
190
|
+
"types": "./components/select-option.d.ts"
|
|
191
191
|
},
|
|
192
192
|
"./react/select-option.js": {
|
|
193
|
-
"import": "./react/select
|
|
194
|
-
"require": "./react/select
|
|
195
|
-
"types": "./react/select
|
|
193
|
+
"import": "./react/select-option.js",
|
|
194
|
+
"require": "./react/select-option.js",
|
|
195
|
+
"types": "./react/select-option.d.ts"
|
|
196
196
|
},
|
|
197
197
|
"./components/spinner.js": {
|
|
198
198
|
"import": "./components/spinner.js",
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
"@justeattakeaway/pie-notification": "0.12.15",
|
|
308
308
|
"@justeattakeaway/pie-radio": "0.9.1",
|
|
309
309
|
"@justeattakeaway/pie-radio-group": "0.7.3",
|
|
310
|
-
"@justeattakeaway/pie-select": "0.0.0-snapshot-release-
|
|
310
|
+
"@justeattakeaway/pie-select": "0.0.0-snapshot-release-20250314140154",
|
|
311
311
|
"@justeattakeaway/pie-spinner": "1.0.1",
|
|
312
312
|
"@justeattakeaway/pie-switch": "1.2.2",
|
|
313
313
|
"@justeattakeaway/pie-tag": "0.15.0",
|
package/src/componentService.js
CHANGED
|
@@ -74,19 +74,20 @@ export class ComponentService {
|
|
|
74
74
|
/**
|
|
75
75
|
* Creates the exports for a component to be added to the pie-webc package.json.
|
|
76
76
|
* @param {string} componentName - The name of the component to create exports for, omitting the `'pie-'` prefix.
|
|
77
|
-
* @param {string} [parentComponentName] - The name of the parent component, omitting the `'pie-'` prefix.
|
|
78
77
|
* @returns {Object} - An object containing the exports for the component.
|
|
79
78
|
*/
|
|
80
|
-
createPackageJsonExports (componentName
|
|
81
|
-
const createExportPath = (pathPrefix) => ({
|
|
82
|
-
import: `${pathPrefix}/${componentName}.js`,
|
|
83
|
-
require: `${pathPrefix}/${componentName}.js`,
|
|
84
|
-
types: `${pathPrefix}/${componentName}.d.ts`,
|
|
85
|
-
});
|
|
86
|
-
|
|
79
|
+
createPackageJsonExports (componentName) {
|
|
87
80
|
const exports = {
|
|
88
|
-
[`./components/${componentName}.js`]:
|
|
89
|
-
|
|
81
|
+
[`./components/${componentName}.js`]: {
|
|
82
|
+
import: `./components/${componentName}.js`,
|
|
83
|
+
require: `./components/${componentName}.js`,
|
|
84
|
+
types: `./components/${componentName}.d.ts`,
|
|
85
|
+
},
|
|
86
|
+
[`./react/${componentName}.js`]: {
|
|
87
|
+
import: `./react/${componentName}.js`,
|
|
88
|
+
require: `./react/${componentName}.js`,
|
|
89
|
+
types: `./react/${componentName}.d.ts`,
|
|
90
|
+
},
|
|
90
91
|
};
|
|
91
92
|
|
|
92
93
|
return exports;
|
|
@@ -200,7 +201,7 @@ export class ComponentService {
|
|
|
200
201
|
const subComponentTargets = [
|
|
201
202
|
{
|
|
202
203
|
dir: componentsTargetDir,
|
|
203
|
-
exportPath: `${packageName}/dist/${subComponent}`,
|
|
204
|
+
exportPath: `${packageName}/dist/${subComponent}/index.js`,
|
|
204
205
|
},
|
|
205
206
|
{
|
|
206
207
|
dir: reactTargetDir,
|
|
@@ -212,7 +213,7 @@ export class ComponentService {
|
|
|
212
213
|
this.writeFilesForComponent(subComponentName, target);
|
|
213
214
|
});
|
|
214
215
|
|
|
215
|
-
const subComponentExports = this.createPackageJsonExports(subComponentName
|
|
216
|
+
const subComponentExports = this.createPackageJsonExports(subComponentName);
|
|
216
217
|
newPackageJson.exports = {
|
|
217
218
|
...newPackageJson.exports,
|
|
218
219
|
...subComponentExports,
|