@@ -5,7 +5,7 @@ import * as util from './util';
5
5
* Cleans the top level dist folder. All npm-ready packages are created
6
6
* in the dist folder.
7
7
*/
8
- export function removeDistFolder ( config : Config ) : Promise < string > {
8
+ export function removeDistFolder ( _config : Config ) : Promise < string > {
9
9
return util . exec ( 'rimraf' , [ './dist' ] ) ;
10
10
}
11
11
@@ -133,7 +133,7 @@ export async function createUmdBundles(config: Config): Promise<void> {
133
133
* Removes any leftover TypeScript files from previous compilation steps,
134
134
* leaving any type definition files in place
135
135
*/
136
- export async function cleanTypeScriptFiles ( config : Config ) : Promise < void > {
136
+ export async function cleanTypeScriptFiles ( _config : Config ) : Promise < void > {
137
137
const tsFilesGlob : string = './dist/**/*.ts' ;
138
138
const dtsFilesFlob : string = './dist/**/*.d.ts' ;
139
139
const filesToRemove : Array < string > = await util . getListOfFiles ( tsFilesGlob , dtsFilesFlob ) ;
@@ -198,7 +198,7 @@ export async function removeRemainingSourceMapFiles(config: Config): Promise<voi
198
198
* Copies the type definition files and NGC metadata files to
199
199
* the root of the distribution
200
200
*/
201
- export async function copyTypeDefinitionFiles ( config : Config ) : Promise < void > {
201
+ export async function copyTypeDefinitionFiles ( _config : Config ) : Promise < void > {
202
202
/*
203
203
const packages = util.getTopLevelPackages(config);
204
204
const files = await util.getListOfFiles(
@@ -246,7 +246,7 @@ export async function minifyUmdBundles(config: Config): Promise<void> {
246
246
export async function copyDocs ( config : Config ) : Promise < void > {
247
247
const packages : Array < string > = util . getTopLevelPackages ( config ) ;
248
248
249
- await mapAsync ( packages , async pkg => {
249
+ await mapAsync ( packages , async _pkg => {
250
250
// const source = `./src/${pkg}`;
251
251
const source : string = `.` ;
252
252
// const target = `./dist/${pkg}`;
@@ -262,7 +262,7 @@ export async function copyDocs(config: Config): Promise<void> {
262
262
export async function copyPackageJsonFiles ( config : Config ) :Promise < void > {
263
263
const packages : Array < string > = util . getAllPackages ( config ) ;
264
264
265
- await mapAsync ( packages , async pkg => {
265
+ await mapAsync ( packages , async _pkg => {
266
266
// const source = `./src/${pkg}`;
267
267
const source : string = `./src` ;
268
268
// const target = `./dist/${pkg}`;
@@ -275,7 +275,7 @@ export async function copyPackageJsonFiles(config: Config):Promise<void> {
275
275
/**
276
276
* Removes the packages folderPromise<void>
277
277
*/
278
- export async function removePackagesFolder ( config : Config ) : Promise < void > {
278
+ export async function removePackagesFolder ( _config : Config ) : Promise < void > {
279
279
await util . removeRecursively ( './dist' ) ;
280
280
}
281
281
@@ -287,8 +287,6 @@ export async function publishToRepo(config: Config): Promise<void> {
287
287
const SOURCE_DIR : string = `./dist/${ pkg } ` ;
288
288
const REPO_URL :
string = `[email protected] :ngrx/${ pkg } -builds.git` ;
289
289
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` ] ) ;
292
290
const COMMITTER_USER_NAME : string = await util . git ( [
293
291
`--no-pager show -s --format='%cN' HEAD`
294
292
] ) ;
@@ -326,8 +324,8 @@ export async function publishToRepo(config: Config): Promise<void> {
326
324
327
325
export function mapAsync < T > (
328
326
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 > {
331
329
return Promise . all ( list . map ( mapFn ) ) ;
332
330
}
333
331
0 commit comments