[ci] yarn format
This commit is contained in:
parent
f49944c0e7
commit
8d7abd0ede
5 changed files with 8 additions and 16 deletions
|
@ -9,27 +9,19 @@ const pkg = require('../package.json');
|
|||
*/
|
||||
|
||||
// These packages SHOULD be built by `esinstall`
|
||||
const allowList = new Set([
|
||||
'astro-prism',
|
||||
'prismjs',
|
||||
'shorthash'
|
||||
]);
|
||||
const allowList = new Set(['astro-prism', 'prismjs', 'shorthash']);
|
||||
|
||||
const isAstroRenderer = (name: string) => {
|
||||
return name.startsWith(`@astrojs/renderer-`);
|
||||
}
|
||||
};
|
||||
|
||||
// These packages should NOT be built by `esinstall`
|
||||
// But might not be explicit dependencies of `astro`
|
||||
const denyList = [
|
||||
'prismjs/components/index.js',
|
||||
'@vue/server-renderer'
|
||||
];
|
||||
|
||||
const denyList = ['prismjs/components/index.js', '@vue/server-renderer'];
|
||||
|
||||
export default Object.keys(pkg.dependencies)
|
||||
// Filter out packages that should be loaded threw Snowpack
|
||||
.filter(name => {
|
||||
.filter((name) => {
|
||||
// Explicitly allowed packages should NOT be external
|
||||
if (allowList.has(name)) return false;
|
||||
// Astro renderers should NOT be external
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "Snowpack Example Build Cached",
|
||||
"time": 8496
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "Snowpack Example Build Uncached",
|
||||
"time": 16200
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "Snowpack Example Dev Server Cached",
|
||||
"time": 1229
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "Snowpack Example Dev Server Uncached",
|
||||
"time": 3913
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue