Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 31e1be2

Browse files
committed
Add require-path option to bundle
1 parent 9a93b5f commit 31e1be2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GulpPurescript/Options.purs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ newtype PscBundle
9999
, "module" :: NullOrUndefined (Either String (Array String))
100100
, main :: NullOrUndefined (Either Boolean String)
101101
, namespace :: NullOrUndefined String
102+
, requirePath :: NullOrUndefined String
102103
}
103104

104105
newtype PscDocs
@@ -148,11 +149,13 @@ instance isForeignPscBundle :: IsForeign PscBundle where
148149
, "module": _
149150
, main: _
150151
, namespace: _
152+
, requirePath: _
151153
} <$> (readProp srcKey obj >>= readEither)
152154
<*> readProp outputKey obj
153155
<*> (readProp moduleKey obj >>= readEitherNU)
154156
<*> (readProp mainKey obj >>= readEitherNU)
155-
<*> readProp namespaceKey obj)
157+
<*> readProp namespaceKey obj
158+
<*> readProp requirePathKey obj)
156159

157160
instance isForeignPscDocs :: IsForeign PscDocs where
158161
read obj =

0 commit comments

Comments
 (0)