diff options
Diffstat (limited to 'build/release/verify.js')
-rw-r--r-- | build/release/verify.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build/release/verify.js b/build/release/verify.js index 43d77f800..f167666b2 100644 --- a/build/release/verify.js +++ b/build/release/verify.js @@ -24,13 +24,14 @@ const REGISTRY_URL = "https://registry.npmjs.org/jquery"; const rstable = /^(\d+\.\d+\.\d+)$/; -export async function verifyRelease( { version } = {} ) { +async function verifyRelease( { version } = {} ) { if ( !version ) { version = process.env.VERSION || ( await getLatestVersion() ); } - console.log( `Checking jQuery ${ version }...` ); const release = await buildRelease( { version } ); + console.log( `Verifying jQuery ${ version }...` ); + let verified = true; // Only check stable versions against the CDN @@ -139,8 +140,8 @@ async function buildRelease( { version } ) { .filter( ( dirent ) => dirent.isFile() ) .map( async( dirent ) => ( { name: dirent.name, - path: path.basename( dirent.path ), - contents: await readFile( path.join( dirent.path, dirent.name ), "utf8" ) + path: path.basename( dirent.parentPath ), + contents: await readFile( path.join( dirent.parentPath, dirent.name ), "utf8" ) } ) ) ); @@ -196,3 +197,5 @@ async function sumTarball( filepath ) { const unzipped = await gunzip( contents ); return shasum( unzipped ); } + +verifyRelease(); |