diff --git a/src/block.js b/js/src/block.js similarity index 100% rename from src/block.js rename to js/src/block.js diff --git a/src/config.js b/js/src/config.js similarity index 100% rename from src/config.js rename to js/src/config.js diff --git a/src/dag.js b/js/src/dag.js similarity index 100% rename from src/dag.js rename to js/src/dag.js diff --git a/src/dht.js b/js/src/dht.js similarity index 100% rename from src/dht.js rename to js/src/dht.js diff --git a/src/files.js b/js/src/files.js similarity index 100% rename from src/files.js rename to js/src/files.js diff --git a/src/index.js b/js/src/index.js similarity index 100% rename from src/index.js rename to js/src/index.js diff --git a/src/key.js b/js/src/key.js similarity index 100% rename from src/key.js rename to js/src/key.js diff --git a/src/mfs.js b/js/src/mfs.js similarity index 100% rename from src/mfs.js rename to js/src/mfs.js diff --git a/src/miscellaneous.js b/js/src/miscellaneous.js similarity index 100% rename from src/miscellaneous.js rename to js/src/miscellaneous.js diff --git a/src/object.js b/js/src/object.js similarity index 100% rename from src/object.js rename to js/src/object.js diff --git a/src/pin.js b/js/src/pin.js similarity index 100% rename from src/pin.js rename to js/src/pin.js diff --git a/src/pubsub.js b/js/src/pubsub.js similarity index 100% rename from src/pubsub.js rename to js/src/pubsub.js diff --git a/src/repo.js b/js/src/repo.js similarity index 100% rename from src/repo.js rename to js/src/repo.js diff --git a/src/stats.js b/js/src/stats.js similarity index 100% rename from src/stats.js rename to js/src/stats.js diff --git a/src/swarm.js b/js/src/swarm.js similarity index 100% rename from src/swarm.js rename to js/src/swarm.js diff --git a/test/.gitkeep b/js/test/.gitkeep similarity index 100% rename from test/.gitkeep rename to js/test/.gitkeep diff --git a/test/fixtures/15mb.random b/js/test/fixtures/15mb.random similarity index 100% rename from test/fixtures/15mb.random rename to js/test/fixtures/15mb.random diff --git a/test/fixtures/test-folder/alice.txt b/js/test/fixtures/test-folder/alice.txt similarity index 100% rename from test/fixtures/test-folder/alice.txt rename to js/test/fixtures/test-folder/alice.txt diff --git a/test/fixtures/test-folder/files/hello.txt b/js/test/fixtures/test-folder/files/hello.txt similarity index 100% rename from test/fixtures/test-folder/files/hello.txt rename to js/test/fixtures/test-folder/files/hello.txt diff --git a/test/fixtures/test-folder/files/ipfs.txt b/js/test/fixtures/test-folder/files/ipfs.txt similarity index 100% rename from test/fixtures/test-folder/files/ipfs.txt rename to js/test/fixtures/test-folder/files/ipfs.txt diff --git a/test/fixtures/test-folder/hello-link b/js/test/fixtures/test-folder/hello-link similarity index 100% rename from test/fixtures/test-folder/hello-link rename to js/test/fixtures/test-folder/hello-link diff --git a/test/fixtures/test-folder/holmes.txt b/js/test/fixtures/test-folder/holmes.txt similarity index 100% rename from test/fixtures/test-folder/holmes.txt rename to js/test/fixtures/test-folder/holmes.txt diff --git a/test/fixtures/test-folder/ipfs-add.js b/js/test/fixtures/test-folder/ipfs-add.js similarity index 100% rename from test/fixtures/test-folder/ipfs-add.js rename to js/test/fixtures/test-folder/ipfs-add.js diff --git a/test/fixtures/test-folder/jungle.txt b/js/test/fixtures/test-folder/jungle.txt similarity index 100% rename from test/fixtures/test-folder/jungle.txt rename to js/test/fixtures/test-folder/jungle.txt diff --git a/test/fixtures/test-folder/pp.txt b/js/test/fixtures/test-folder/pp.txt similarity index 100% rename from test/fixtures/test-folder/pp.txt rename to js/test/fixtures/test-folder/pp.txt diff --git a/test/fixtures/testfile.txt b/js/test/fixtures/testfile.txt similarity index 100% rename from test/fixtures/testfile.txt rename to js/test/fixtures/testfile.txt diff --git a/test/interface.spec.js b/js/test/interface.spec.js similarity index 100% rename from test/interface.spec.js rename to js/test/interface.spec.js diff --git a/package.json b/package.json index 1bd73b4b..c31ca64a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "interface-ipfs-core", "version": "0.42.1", "description": "A test suite and interface you can use to implement a IPFS core interface.", - "main": "src/index.js", + "main": "js/src/index.js", "scripts": { "test": "exit 0", "lint": "aegir lint", @@ -13,8 +13,8 @@ "coverage-publish": "exit 0" }, "files": [ - "src/", - "test/" + "js/src/", + "js/test/" ], "repository": { "type": "git",