Move NodeJS script files to sub directory

This commit is contained in:
Nabarun 2024-08-14 20:10:36 +05:30
parent a13326b7b4
commit 71e292cfc2
9 changed files with 16 additions and 6 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
node_modules
dist
*-deployment
*-spec.yml

3
scripts/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
node_modules
dist
.env

View File

@ -1,5 +1,11 @@
# cli
## Prerequisites
- NodeJS - `v20.16.0`
## Instructions
* Install dependencies and build:
```bash
@ -17,8 +23,8 @@
* Map subscribers to onboarded participants:
```bash
yarn map-subscribers-to-participants --subscribersCsv <subscribers-csv-file> --output <output-csv-file>
yarn map-subscribers-to-participants --subscribers-csv <subscribers-csv-file> --output <output-csv-file>
# Example:
# yarn map-subscribers-to-participants --subscribersCsv subscribers.csv --output result.csv
# yarn map-subscribers-to-participants --subscribers-csv subscribers.csv --output result.csv
```

View File

@ -24,5 +24,6 @@
"scripts": {
"build": "tsc",
"map-subscribers-to-participants": "node dist/map-subscribers-to-participants.js"
}
},
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}

View File

@ -105,6 +105,6 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["cli"],
"include": ["src"],
"exclude": ["dist"],
}