[ci] yarn format

This commit is contained in:
natemoo-re 2021-05-28 22:52:52 +00:00 committed by GitHub Actions
parent f49944c0e7
commit 8d7abd0ede
5 changed files with 8 additions and 16 deletions

View file

@ -9,27 +9,19 @@ const pkg = require('../package.json');
*/ */
// These packages SHOULD be built by `esinstall` // These packages SHOULD be built by `esinstall`
const allowList = new Set([ const allowList = new Set(['astro-prism', 'prismjs', 'shorthash']);
'astro-prism',
'prismjs',
'shorthash'
]);
const isAstroRenderer = (name: string) => { const isAstroRenderer = (name: string) => {
return name.startsWith(`@astrojs/renderer-`); return name.startsWith(`@astrojs/renderer-`);
} };
// These packages should NOT be built by `esinstall` // These packages should NOT be built by `esinstall`
// But might not be explicit dependencies of `astro` // But might not be explicit dependencies of `astro`
const denyList = [ const denyList = ['prismjs/components/index.js', '@vue/server-renderer'];
'prismjs/components/index.js',
'@vue/server-renderer'
];
export default Object.keys(pkg.dependencies) export default Object.keys(pkg.dependencies)
// Filter out packages that should be loaded threw Snowpack // Filter out packages that should be loaded threw Snowpack
.filter(name => { .filter((name) => {
// Explicitly allowed packages should NOT be external // Explicitly allowed packages should NOT be external
if (allowList.has(name)) return false; if (allowList.has(name)) return false;
// Astro renderers should NOT be external // Astro renderers should NOT be external

View file

@ -1,4 +1,4 @@
{ {
"name": "Snowpack Example Build Cached", "name": "Snowpack Example Build Cached",
"time": 8496 "time": 8496
} }

View file

@ -1,4 +1,4 @@
{ {
"name": "Snowpack Example Build Uncached", "name": "Snowpack Example Build Uncached",
"time": 16200 "time": 16200
} }

View file

@ -1,4 +1,4 @@
{ {
"name": "Snowpack Example Dev Server Cached", "name": "Snowpack Example Dev Server Cached",
"time": 1229 "time": 1229
} }

View file

@ -1,4 +1,4 @@
{ {
"name": "Snowpack Example Dev Server Uncached", "name": "Snowpack Example Dev Server Uncached",
"time": 3913 "time": 3913
} }