File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @microsoft/inshellisense" ,
3- "version" : " 0.0.1-rc.23 " ,
3+ "version" : " 0.0.1-rc.24 " ,
44 "description" : " IDE style command line auto complete" ,
55 "type" : " module" ,
66 "engines" : {
Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ const getVersion = (): string => {
1313 return packageJson . version ;
1414} ;
1515
16+ const copyFiles = ( ) : void => {
17+ const mdFiles = fs . readdirSync ( process . cwd ( ) ) . filter ( ( file ) => file . endsWith ( ".md" ) ) ;
18+ for ( const file of mdFiles ) {
19+ fs . copyFileSync ( file , path . join ( PKG_DIR , file ) ) ;
20+ }
21+ fs . copyFileSync ( "LICENSE" , path . join ( PKG_DIR , "LICENSE" ) ) ;
22+ } ;
23+
1624const generatePackageJson = ( ) : void => {
1725 const packageJson = {
1826 name : `@microsoft/inshellisense` ,
@@ -29,7 +37,10 @@ const generatePackageJson = (): void => {
2937 bugs : {
3038 url : "https://github.com/microsoft/inshellisense/issues" ,
3139 } ,
32- files : [ ] ,
40+ files : [
41+ "*.md" ,
42+ "LICENSE" ,
43+ ] ,
3344 optionalDependencies : {
3445 "@microsoft/inshellisense-darwin-x64" : getVersion ( ) ,
3546 "@microsoft/inshellisense-darwin-arm64" : getVersion ( ) ,
@@ -47,6 +58,7 @@ const packageBase = (): void => {
4758} ;
4859
4960const main = async ( ) : Promise < void > => {
61+ copyFiles ( ) ;
5062 generatePackageJson ( ) ;
5163 packageBase ( ) ;
5264} ;
You can’t perform that action at this time.
0 commit comments