mrbrianevans / social-media-export-analyser

Analyse GDPR exports of your data from big social media companies
https://social-media-export-analyser-mrybc.ondigitalocean.app/
MIT License
1 stars 0 forks source link

Change lib to be installable package #49

Open mrbrianevans opened 2 years ago

mrbrianevans commented 2 years ago

Make lib a package that can be installed.

In client and lib-testing, rather than referencing imports like ../../../lib/preProcessing/preProcessors/csv, install npm i ../lib and then reference import {} from 'lib'.

This will make the code more modular, and allow modules to be built independently. At the moment, they depend on each other too much.

mrbrianevans commented 2 years ago

Change all packages to type: module in package JSON, and use ESModules instead of commonjs. This will probably take some time to get it to work with TypeScript.