@shopify/manifests
Advanced tools
Comparing version 1.0.0-wp5-beta.9 to 1.0.0-wp5-beta.12
@@ -51,6 +51,6 @@ "use strict"; | ||
// prettier-ignore | ||
const manifestPaths = (yield util_1.promisify(glob_1.default)(manifestGlob, { cwd: root, absolute: true })) | ||
const manifestPaths = (yield (0, util_1.promisify)(glob_1.default)(manifestGlob, { cwd: root, absolute: true })) | ||
.filter((manifestPath) => manifestPath !== root) | ||
.filter((manifestPath) => manifestPath !== destination); | ||
yield __1.consolidateManifests(manifestPaths, destination, { | ||
yield (0, __1.consolidateManifests)(manifestPaths, destination, { | ||
removeLegacyData, | ||
@@ -57,0 +57,0 @@ zip, |
@@ -36,3 +36,3 @@ "use strict"; | ||
process.on('unhandledRejection', gracefulExit); | ||
// eslint-disable-next-line babel/no-unused-expressions | ||
// eslint-disable-next-line @babel/no-unused-expressions | ||
yargs_1.default | ||
@@ -39,0 +39,0 @@ .usage('Usage: $0 <command> [options]') |
@@ -40,3 +40,3 @@ "use strict"; | ||
const contentStr = JSON.stringify(manifests, null, 2); | ||
const finalContentStr = zip ? yield node_gzip_1.gzip(contentStr) : contentStr; | ||
const finalContentStr = zip ? yield (0, node_gzip_1.gzip)(contentStr) : contentStr; | ||
const finalDestination = zip && !consolidatedManifestPath.endsWith('.gz') | ||
@@ -43,0 +43,0 @@ ? `${consolidatedManifestPath}.gz` |
@@ -26,8 +26,8 @@ "use strict"; | ||
it('moves the most polyfilled English manifest to the end of the list', () => { | ||
expect(sorter_1.manifestSorter(manifest({ locales: ['en'], target: 'baseline' }), manifest({ locales: ['en'], target: 'latest' }))).toStrictEqual(1); | ||
expect(sorter_1.manifestSorter(manifest({ locales: ['en'], target: 'latest' }), manifest({ locales: ['en'], target: 'baseline' }))).toStrictEqual(-1); | ||
expect((0, sorter_1.manifestSorter)(manifest({ locales: ['en'], target: 'baseline' }), manifest({ locales: ['en'], target: 'latest' }))).toBe(1); | ||
expect((0, sorter_1.manifestSorter)(manifest({ locales: ['en'], target: 'latest' }), manifest({ locales: ['en'], target: 'baseline' }))).toStrictEqual(-1); | ||
}); | ||
it('moves the fallback locale to the end of the list', () => { | ||
expect(sorter_1.manifestSorter(manifest({ locales: ['al', 'en'], target: 'baseline' }), manifest({ locales: ['fr'], target: 'baseline' }))).toStrictEqual(1); | ||
expect(sorter_1.manifestSorter(manifest({ locales: ['fr'], target: 'baseline' }), manifest({ locales: ['al', 'en'], target: 'baseline' }))).toStrictEqual(-1); | ||
expect((0, sorter_1.manifestSorter)(manifest({ locales: ['al', 'en'], target: 'baseline' }), manifest({ locales: ['fr'], target: 'baseline' }))).toBe(1); | ||
expect((0, sorter_1.manifestSorter)(manifest({ locales: ['fr'], target: 'baseline' }), manifest({ locales: ['al', 'en'], target: 'baseline' }))).toStrictEqual(-1); | ||
}); | ||
@@ -34,0 +34,0 @@ it('moves English manifests to the end, with the most polyfilled build last', () => { |
{ | ||
"name": "@shopify/manifests", | ||
"version": "1.0.0-wp5-beta.9", | ||
"version": "1.0.0-wp5-beta.12", | ||
"main": "./dist/src/index.js", | ||
@@ -29,3 +29,3 @@ "types": "./dist/src/index.d.js", | ||
"devDependencies": { | ||
"@shopify/webpack-asset-metadata-plugin": "^3.0.0-wp5-beta.9" | ||
"@shopify/webpack-asset-metadata-plugin": "^3.0.0-wp5-beta.12" | ||
}, | ||
@@ -38,3 +38,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "328b3a1e31337eb22ecf2c66c59a89ffd658905a" | ||
"gitHead": "6aa934e4411664aa686827b58021cb1c0d9ca1a6" | ||
} |
Sorry, the diff of this file is not supported yet
59747