You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This difference means that using one of these modules requires you to do:
varvalidator=require("email-validator/index");
instead of
varvalidator=require("email-validator");
Can the NativeScript CLI be changed to assume the .js suffix when it is not present? Furthermore, I'd like the CLI to support modules that do not have a "main" in their package.json at all. In these cases the NativeScript CLI should just use that module's index.js (if present).
Thanks.
The text was updated successfully, but these errors were encountered:
Moved from NativeScript/nativescript-cli#670
@jlooper and I have run across a few different npm modules that have a
"main"
of"index"
in theirpackage.json
, instead of"index.js"
—for example https://github.com/Sembiance/email-validator and https://github.com/snoj/email-validation.This difference means that using one of these modules requires you to do:
instead of
Can the NativeScript CLI be changed to assume the .js suffix when it is not present? Furthermore, I'd like the CLI to support modules that do not have a
"main"
in theirpackage.json
at all. In these cases the NativeScript CLI should just use that module'sindex.js
(if present).Thanks.
The text was updated successfully, but these errors were encountered: