@@ -5,7 +5,7 @@ import * as util from './util';
55 * Cleans the top level dist folder. All npm-ready packages are created
66 * in the dist folder.
77 */
8- export function removeDistFolder ( config : Config ) : Promise < string > {
8+ export function removeDistFolder ( _config : Config ) : Promise < string > {
99 return util . exec ( 'rimraf' , [ './dist' ] ) ;
1010}
1111
@@ -133,7 +133,7 @@ export async function createUmdBundles(config: Config): Promise<void> {
133133 * Removes any leftover TypeScript files from previous compilation steps,
134134 * leaving any type definition files in place
135135 */
136- export async function cleanTypeScriptFiles ( config : Config ) : Promise < void > {
136+ export async function cleanTypeScriptFiles ( _config : Config ) : Promise < void > {
137137 const tsFilesGlob : string = './dist/**/*.ts' ;
138138 const dtsFilesFlob : string = './dist/**/*.d.ts' ;
139139 const filesToRemove : Array < string > = await util . getListOfFiles ( tsFilesGlob , dtsFilesFlob ) ;
@@ -198,7 +198,7 @@ export async function removeRemainingSourceMapFiles(config: Config): Promise<voi
198198 * Copies the type definition files and NGC metadata files to
199199 * the root of the distribution
200200 */
201- export async function copyTypeDefinitionFiles ( config : Config ) : Promise < void > {
201+ export async function copyTypeDefinitionFiles ( _config : Config ) : Promise < void > {
202202 /*
203203 const packages = util.getTopLevelPackages(config);
204204 const files = await util.getListOfFiles(
@@ -246,7 +246,7 @@ export async function minifyUmdBundles(config: Config): Promise<void> {
246246export async function copyDocs ( config : Config ) : Promise < void > {
247247 const packages : Array < string > = util . getTopLevelPackages ( config ) ;
248248
249- await mapAsync ( packages , async pkg => {
249+ await mapAsync ( packages , async _pkg => {
250250 // const source = `./src/${pkg}`;
251251 const source : string = `.` ;
252252 // const target = `./dist/${pkg}`;
@@ -262,7 +262,7 @@ export async function copyDocs(config: Config): Promise<void> {
262262export async function copyPackageJsonFiles ( config : Config ) :Promise < void > {
263263 const packages : Array < string > = util . getAllPackages ( config ) ;
264264
265- await mapAsync ( packages , async pkg => {
265+ await mapAsync ( packages , async _pkg => {
266266 // const source = `./src/${pkg}`;
267267 const source : string = `./src` ;
268268 // const target = `./dist/${pkg}`;
@@ -275,7 +275,7 @@ export async function copyPackageJsonFiles(config: Config):Promise<void> {
275275/**
276276 * Removes the packages folderPromise<void>
277277 */
278- export async function removePackagesFolder ( config : Config ) : Promise < void > {
278+ export async function removePackagesFolder ( _config : Config ) : Promise < void > {
279279 await util . removeRecursively ( './dist' ) ;
280280}
281281
@@ -287,8 +287,6 @@ export async function publishToRepo(config: Config): Promise<void> {
287287 const SOURCE_DIR : string = `./dist/${ pkg } ` ;
288288 const REPO_URL :
string = `[email protected] :ngrx/${ pkg } -builds.git` ; 289289 const REPO_DIR : string = `./tmp/${ pkg } ` ;
290- const SHA : string = await util . git ( [ `rev-parse HEAD` ] ) ;
291- const SHORT_SHA : string = await util . git ( [ `rev-parse --short HEAD` ] ) ;
292290 const COMMITTER_USER_NAME : string = await util . git ( [
293291 `--no-pager show -s --format='%cN' HEAD`
294292 ] ) ;
@@ -326,8 +324,8 @@ export async function publishToRepo(config: Config): Promise<void> {
326324
327325export function mapAsync < T > (
328326 list : Array < T > ,
329- mapFn : ( v : T , i : number ) => Promise < any >
330- ) : Promise < any > {
327+ mapFn : ( v : T , i : number ) => Promise < unknown >
328+ ) : Promise < unknown > {
331329 return Promise . all ( list . map ( mapFn ) ) ;
332330}
333331
0 commit comments