File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
// Copyright 2022 MFB Technologies, Inc.
3
3
4
- const path = require ( "path" ) ;
5
- const fs = require ( "fs" ) ;
6
- const childProcess = require ( ' child_process' ) ;
4
+ const path = require ( "path" )
5
+ const fs = require ( "fs" )
6
+ const childProcess = require ( " child_process" )
7
7
8
- const targetPackDirectory = path . join ( __dirname , ".." , "packed" ) ;
9
- const npmPackCommand = `npm pack --pack-destination ${ targetPackDirectory } ` ;
8
+ const targetPackDirectory = path . join ( __dirname , ".." , "packed" )
9
+ const npmPackCommand = `npm pack --pack-destination ${ targetPackDirectory } `
10
10
11
- ( function main ( ) {
12
- fs . mkdir ( targetPackDirectory , { recursive : true } , ( err ) => {
13
- if ( err ) throw err ;
14
- } ) ;
11
+ ; ( function main ( ) {
12
+ fs . mkdir ( targetPackDirectory , { recursive : true } , err => {
13
+ if ( err ) throw err
14
+ } )
15
15
childProcess . execSync ( npmPackCommand )
16
- } ) ( ) ;
16
+ } ) ( )
You can’t perform that action at this time.
0 commit comments