diff --git a/test/fixtures/lib/index.js b/test/fixtures/lib/index.js index 1fd9c38..8ecd600 100644 --- a/test/fixtures/lib/index.js +++ b/test/fixtures/lib/index.js @@ -45,3 +45,7 @@ require('deps-tsx-main-tsx'); // ../node_modules/deps-tsx-main-tsx, with "main": require('deps-vue'); require('deps-vue-main'); require('deps-vue-main-vue'); + +require('deps-json'); +require('deps-json-main'); +require('deps-json-main-json'); diff --git a/test/fixtures/node_modules/deps-json-main-json/main.json b/test/fixtures/node_modules/deps-json-main-json/main.json new file mode 100644 index 0000000..cdf0932 --- /dev/null +++ b/test/fixtures/node_modules/deps-json-main-json/main.json @@ -0,0 +1,3 @@ +{ + "description": "Use for back." +} diff --git a/test/fixtures/node_modules/deps-json-main-json/package.json b/test/fixtures/node_modules/deps-json-main-json/package.json new file mode 100644 index 0000000..47fe49e --- /dev/null +++ b/test/fixtures/node_modules/deps-json-main-json/package.json @@ -0,0 +1,4 @@ +{ + "name": "deps-json-main", + "main": "main.json" +} diff --git a/test/fixtures/node_modules/deps-json-main/main.json b/test/fixtures/node_modules/deps-json-main/main.json new file mode 100644 index 0000000..cdf0932 --- /dev/null +++ b/test/fixtures/node_modules/deps-json-main/main.json @@ -0,0 +1,3 @@ +{ + "description": "Use for back." +} diff --git a/test/fixtures/node_modules/deps-json-main/package.json b/test/fixtures/node_modules/deps-json-main/package.json new file mode 100644 index 0000000..12a6bfb --- /dev/null +++ b/test/fixtures/node_modules/deps-json-main/package.json @@ -0,0 +1,4 @@ +{ + "name": "deps-json-main", + "main": "main" +} diff --git a/test/fixtures/node_modules/deps-json/index.json b/test/fixtures/node_modules/deps-json/index.json new file mode 100644 index 0000000..cdf0932 --- /dev/null +++ b/test/fixtures/node_modules/deps-json/index.json @@ -0,0 +1,3 @@ +{ + "description": "Use for back." +} diff --git a/test/fixtures/node_modules/deps-json/package.json b/test/fixtures/node_modules/deps-json/package.json new file mode 100644 index 0000000..77f39ad --- /dev/null +++ b/test/fixtures/node_modules/deps-json/package.json @@ -0,0 +1,4 @@ +{ + "name": "deps-json", + "description": "Without main, use default index.json" +}