From b874980072377ec34755830202e1a1c71e2a3a34 Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Tue, 30 Jan 2018 11:44:11 +0800 Subject: [PATCH] fix #2459 --- jscomp/bsb/templates/generator/bsconfig.json | 8 ++++---- jscomp/bsb/templates/minimal/bsconfig.json | 5 ++++- jscomp/bsb/templates/node/bsconfig.json | 10 +++++----- jscomp/bsb/templates/react/bsconfig.json | 7 ++++--- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/jscomp/bsb/templates/generator/bsconfig.json b/jscomp/bsb/templates/generator/bsconfig.json index 98bd471641..465b4127bd 100644 --- a/jscomp/bsb/templates/generator/bsconfig.json +++ b/jscomp/bsb/templates/generator/bsconfig.json @@ -1,18 +1,18 @@ { "name": "${bsb:name}", "version": "${bsb:proj-version}", - "sources": [{ + "sources": { "dir": "src", "generators": [{ "name": "cpp", "edge": ["test.ml", ":", "test.cpp.ml"] - }] - }], + }], + "subdirs": true + }, "generators": [{ "name" : "cpp", "command": "sed 's/OCAML/3/' $in > $out" }], "bs-dependencies" : [ - // add your bs-dependencies here ] } \ No newline at end of file diff --git a/jscomp/bsb/templates/minimal/bsconfig.json b/jscomp/bsb/templates/minimal/bsconfig.json index 0f7023f199..1b4f64b259 100644 --- a/jscomp/bsb/templates/minimal/bsconfig.json +++ b/jscomp/bsb/templates/minimal/bsconfig.json @@ -1,4 +1,7 @@ { "name": "${bsb:name}", - "sources": ["src"] + "sources": { + "dir": "src", + "subdirs": true + } } \ No newline at end of file diff --git a/jscomp/bsb/templates/node/bsconfig.json b/jscomp/bsb/templates/node/bsconfig.json index a49d27089a..a4a139b06f 100644 --- a/jscomp/bsb/templates/node/bsconfig.json +++ b/jscomp/bsb/templates/node/bsconfig.json @@ -1,15 +1,15 @@ { "name": "${bsb:name}", "version": "${bsb:proj-version}", - "sources": [ - "src" - ], + "sources": { + "dir": "src", + "subdirs" : true + }, "package-specs": { "module": "commonjs", "in-source": true }, "suffix": ".bs.js", "bs-dependencies": [ - // add your bs-dependencies here - ] + ] } \ No newline at end of file diff --git a/jscomp/bsb/templates/react/bsconfig.json b/jscomp/bsb/templates/react/bsconfig.json index 68965d49a5..39a561f701 100644 --- a/jscomp/bsb/templates/react/bsconfig.json +++ b/jscomp/bsb/templates/react/bsconfig.json @@ -7,9 +7,10 @@ "reason": { "react-jsx": 2 }, - "sources": [ - "src" - ], + "sources": { + "dir" : "src", + "subdirs" : true + }, "package-specs": [{ "module": "commonjs", "in-source": true