File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ const requiredPackageFiles = [
6363 'package.json' ,
6464 'dist/index.html' ,
6565 'scripts/build-diff-data.mjs' ,
66+ 'scripts/cache.mjs' ,
6667 'scripts/cli-args.mjs' ,
6768 'scripts/coding-agents.mjs' ,
6869 'scripts/doctor.mjs' ,
@@ -71,7 +72,7 @@ const requiredPackageFiles = [
7172 'scripts/serve-built.mjs' ,
7273 'scripts/summary-path.mjs' ,
7374] ;
74- const allowedPackageFile = / ^ ( R E A D M E (?: \. m d ) ? | L I C E N S E (?: \. m d ) ? | N O T I C E (?: \. m d ) ? | p a c k a g e \. j s o n | d i s t \/ .+ | s c r i p t s \/ (?: b u i l d - d i f f - d a t a | c l i - a r g s | c o d i n g - a g e n t s | d o c t o r | g e n e r a t e - s u m m a r i e s | p r e s e n t | s e r v e - b u i l t | s u m m a r y - p a t h ) \. m j s ) $ / ;
75+ const allowedPackageFile = / ^ ( R E A D M E (?: \. m d ) ? | L I C E N S E (?: \. m d ) ? | N O T I C E (?: \. m d ) ? | p a c k a g e \. j s o n | d i s t \/ .+ | s c r i p t s \/ (?: b u i l d - d i f f - d a t a | c a c h e | c l i - a r g s | c o d i n g - a g e n t s | d o c t o r | g e n e r a t e - s u m m a r i e s | p r e s e n t | s e r v e - b u i l t | s u m m a r y - p a t h ) \. m j s ) $ / ;
7576const privatePackageFile = / ( ^ | \/ ) (?: \. e n v | \. n p m r c | \. g i t | \. g i t h u b | \. a g e n t s | \. c o d e x ) (?: \/ | $ ) | \. (?: p e m | k e y ) $ / i;
7677
7778export function validatePackageManifest ( pack ) {
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const requiredFiles = [
77 'package.json' ,
88 'dist/index.html' ,
99 'scripts/build-diff-data.mjs' ,
10+ 'scripts/cache.mjs' ,
1011 'scripts/cli-args.mjs' ,
1112 'scripts/coding-agents.mjs' ,
1213 'scripts/doctor.mjs' ,
You can’t perform that action at this time.
0 commit comments