@wix/origami-transforms 0.1.23 → 0.1.24
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.
|
@@ -23,6 +23,7 @@ export function entryTarget(registration: CompanionRegistration, srcDir: string)
|
|
|
23
23
|
export function findFile(target: string, exists: (path: string) => boolean): string | undefined;
|
|
24
24
|
export function companionExports(modules: ReadonlyMap<string, CompanionModule>, entry: (registration: CompanionRegistration) => string): Record<string, string>;
|
|
25
25
|
export function readCompanionRegistrationsIn(srcDir: string): Map<string, CompanionRegistration>;
|
|
26
|
+
export function extensionFiles(directory: string): string[];
|
|
26
27
|
export type CompanionModule = {
|
|
27
28
|
registration: CompanionRegistration;
|
|
28
29
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/origami-transforms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Babel and PostCSS checks and transforms for Wix origami page files.",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
},
|
|
70
70
|
"type": "module",
|
|
71
71
|
"types": "./dist/index.d.ts",
|
|
72
|
-
"falconPackageHash": "
|
|
72
|
+
"falconPackageHash": "398f6cf44892edee778a3cce4a42b93f61f9ffbea23beb4703826cf8"
|
|
73
73
|
}
|
|
@@ -177,8 +177,11 @@ export const readCompanionRegistrationsIn = srcDir =>
|
|
|
177
177
|
extensionFiles(srcDir).map(file => /** @type {const} */ ([file, readFileSync(file, 'utf8')]))
|
|
178
178
|
)
|
|
179
179
|
|
|
180
|
-
/**
|
|
181
|
-
|
|
180
|
+
/**
|
|
181
|
+
* Every registration file under `directory`, skipping `node_modules`; none when it doesn't exist.
|
|
182
|
+
* @param {string} directory @returns {string[]}
|
|
183
|
+
*/
|
|
184
|
+
export const extensionFiles = directory =>
|
|
182
185
|
existsSync(directory)
|
|
183
186
|
? readdirSync(directory, { withFileTypes: true }).flatMap(entry => {
|
|
184
187
|
const path = posix.join(directory, entry.name)
|