@justeattakeaway/pie-webc 0.0.0-snapshot-release-20240502093305 → 0.0.0-snapshot-release-20240502093622
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/add-components.js +4 -0
- package/package.json +1 -1
package/add-components.js
CHANGED
|
@@ -71,6 +71,10 @@ fs.readdirSync(componentsSourceDir).forEach((folder) => {
|
|
|
71
71
|
fs.writeFileSync(jsFilePath, fileContent);
|
|
72
72
|
fs.writeFileSync(tsFilePath, fileContent);
|
|
73
73
|
|
|
74
|
+
if (!pieWebcPackageJson.exports) {
|
|
75
|
+
pieWebcPackageJson.exports = {};
|
|
76
|
+
}
|
|
77
|
+
|
|
74
78
|
// Update exports in the pie-webc package.json to include the component
|
|
75
79
|
pieWebcPackageJson.exports[`./${target.type}/${componentName}.js`] = {
|
|
76
80
|
import: `./${target.type}/${componentName}.js`,
|
package/package.json
CHANGED