From 2b620717603a6a2ba4d93ee1ca7334dc31500acf Mon Sep 17 00:00:00 2001 From: Nathan Faubion Date: Mon, 2 Nov 2015 14:04:58 -0600 Subject: Remove `require-path`, use relative paths for PS Fixes #15 Removes the `require-path` option and fixes it to '../'. When generating the temporary module for Webpack, use a relative path to the output directory so it doesn't need to be in `modulesDirectories`. --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a45573f..bef16af 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,6 @@ Sets `--output=` the specifies the output directory, `output` by default Toggles `--no-prefix` that does not include the comment header. -###### `requirePath` (String) - -Sets `--require-path=` that specifies the path prefix to use for `require()` calls in the generated JavaScript. - ###### `ffi` (String Array) Specifies the PureScript FFI files setting `--ffi=`. Glob syntax is supported. This option is specified as `ffi[]=path`. @@ -73,10 +69,7 @@ var modulesDirectories = [ 'node_modules', // The bower component for purescript-prelude is specified here to // allow JavaScript files to require the 'Prelude' module globally. - 'bower_components/purescript-prelude/src', - // The output directory is specified here to allow PureScript files in - // your source to import other PureScript modules in your source. - output + 'bower_components/purescript-prelude/src' ]; var config -- cgit v1.2.3