Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6297

How to import a file(that is at project's root level) in a package

$
0
0

I am writing a NPM package where I want to import a config file which will be at the home directory of the project.

The most known example would be Babel, Babel uses babel.config.js located at the home directory in the project to read its configuration.

Example Structure -

srcnode_modules  package1   index.js // Here we need to read config.js filepackage.jsonconfig.js

Viewing all articles
Browse latest Browse all 6297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>