Add scripts to package.json
This commit is contained in:
1 parent
adccde9f46
commit
cdf64121fe
7 files changed
+15
-115
No files matched your search
+4
-4
@@ -1,9 +1,9 @@
|
||||
# cli
|
||||
|
||||
* Install dependencies:
|
||||
* Install dependencies and build:
|
||||
|
||||
```bash
|
||||
yarn
|
||||
yarn && yarn build
|
||||
```
|
||||
|
||||
* Create required env configuration:
|
||||
@@ -16,8 +16,8 @@
|
||||
* Map subscribers to onboarded participants:
|
||||
|
||||
```bash
|
||||
yarn ts-node cli/map-subscribers-to-participants.ts --subscribersCsv <subscribers-csv-file> --output <output-csv-file>
|
||||
yarn map-subscribers-to-participants --subscribersCsv <subscribers-csv-file> --output <output-csv-file>
|
||||
|
||||
# Example:
|
||||
# yarn ts-node cli/map-subscribers-to-participants.ts --subscribersCsv subscribers.csv --output result.csv
|
||||
# yarn map-subscribers-to-participants --subscribersCsv subscribers.csv --output result.csv
|
||||
```
|
||||
@@ -23,7 +23,7 @@ async function main(): Promise<void> {
|
||||
const participants = await registry.getParticipants();
|
||||
const subscribers = await readSubscribers(argv.subscribersCsv);
|
||||
|
||||
processSubscribers(client, participants, subscribers, argv.output);
|
||||
await processSubscribers(client, participants, subscribers, argv.output);
|
||||
}
|
||||
|
||||
async function readSubscribers(subscribersCsvPath: string): Promise<any> {
|
||||
|
||||
Reference in new issue
Block a user