paralayer 1.8.0 → 1.9.0
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/dist/bin.js +3 -0
- package/dist/paralayer.js +3 -0
- package/package.json +1 -1
- package/src/paralayer.ts +4 -0
package/dist/bin.js
CHANGED
|
@@ -155,6 +155,9 @@ var Paralayer = class extends Unit {
|
|
|
155
155
|
if (layer1.length !== layer2.length) return layer2.length - layer1.length;
|
|
156
156
|
return layer1.localeCompare(layer2);
|
|
157
157
|
}).map((layer) => `import './layer.${layer}.ts'`);
|
|
158
|
+
if (this.options.globalLayerName && topLayer !== this.options.globalLayerName) {
|
|
159
|
+
imports.unshift(`import './layer.${this.options.globalLayerName}.ts'`);
|
|
160
|
+
}
|
|
158
161
|
return [...imports].join("\n");
|
|
159
162
|
}
|
|
160
163
|
generateSetupContent(allLayers) {
|
package/dist/paralayer.js
CHANGED
|
@@ -150,6 +150,9 @@ var Paralayer = class extends Unit {
|
|
|
150
150
|
if (layer1.length !== layer2.length) return layer2.length - layer1.length;
|
|
151
151
|
return layer1.localeCompare(layer2);
|
|
152
152
|
}).map((layer) => `import './layer.${layer}.ts'`);
|
|
153
|
+
if (this.options.globalLayerName && topLayer !== this.options.globalLayerName) {
|
|
154
|
+
imports.unshift(`import './layer.${this.options.globalLayerName}.ts'`);
|
|
155
|
+
}
|
|
153
156
|
return [...imports].join("\n");
|
|
154
157
|
}
|
|
155
158
|
generateSetupContent(allLayers) {
|
package/package.json
CHANGED
package/src/paralayer.ts
CHANGED
|
@@ -229,6 +229,10 @@ export class Paralayer extends Unit {
|
|
|
229
229
|
})
|
|
230
230
|
.map(layer => `import './layer.${layer}.ts'`)
|
|
231
231
|
|
|
232
|
+
if (this.options.globalLayerName && topLayer !== this.options.globalLayerName) {
|
|
233
|
+
imports.unshift(`import './layer.${this.options.globalLayerName}.ts'`)
|
|
234
|
+
}
|
|
235
|
+
|
|
232
236
|
return [...imports].join('\n')
|
|
233
237
|
}
|
|
234
238
|
|