Skip to content

Commit c16514d

Browse files
committed
Fixed failing test
1 parent 94a2e19 commit c16514d

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.idea/typescript-compiler.xml .idea/compiler.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Example:
2929
<pre><code>
3030
module.exports = {
3131
'module-structure-lang-js': {
32-
webpackConfig: "path/to/your/project/webpack/config.js
32+
webpackConfig: "path/to/your/project/webpack/config.js"
3333
}
3434
};
3535
</code></pre>

conf/defaultConfig.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
"module-structure-lang-js": {
3+
webpackConfig: null
4+
}
5+
};

src/defaultConfig.ts

-5
This file was deleted.

src/javascript-dependency-provider.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ export class JavaScriptDepencencyProvider {
99

1010
constructor() {
1111
this.config = JavaScriptDepencencyProvider.loadConfig();
12-
console.warn(this.config);
1312
}
1413

1514
private static loadConfig(): any {
1615
const configPath = process.cwd() + "/.module-structure.js";
17-
const config = fs.existsSync(configPath) ? require(configPath) : require("./defaultConfig");
16+
const config = fs.existsSync(configPath) ? require(configPath) : require("../conf/defaultConfig");
1817
return config["module-structure-lang-js"];
1918
}
2019

0 commit comments

Comments
 (0)