Files
swarm-api/package.json
T
emizzle a9fe1ff313 Split module between nodejs and browser
Somehow when embark webpacks the dapp, it is still seeing the ‘fs’ object, which of course it doesn’t know about, so it is complaining about a missing module. Any help would be greatly appreciated.
2018-09-10 21:34:39 +10:00

72 lines
1.8 KiB
JSON

{
"name": "swarmjs",
"version": "0.0.1",
"description": "JavaScript library for easily interacting with Swarm distributed storage.",
"main": "dist/node/index.js",
"browser": {
"request": "xhr",
"./dist/node/index.js": "./dist/browser/browser.js"
},
"bin": {
"swarmjs": "./bin/swarmjs"
},
"browserslist": [
"last 1 version",
"not dead",
"> 0.2%"
],
"scripts": {
"lint": "./node_modules/.bin/eslint src/",
"babel:browser": "cross-env BABEL_ENV=browser babel --out-dir dist/browser src",
"babel:node": "cross-env BABEL_ENV=node babel --out-dir dist src",
"build": "npm run clean && npm run babel && npm run webpack",
"clean": "rimraf dist swarmjs-*.tgz package",
"http-server": "http-server",
"prepare": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1",
"webpack": "webpack"
},
"repository": {
"type": "git",
"url": "git+https://github.com/embark-framework/swarmjs.git"
},
"author": "",
"license": "MIT",
"keywords": [
"ethereum",
"dapps",
"swarm",
"blockchain",
"serverless"
],
"bugs": {
"url": "https://github.com/embark-framework/swarmjs/issues"
},
"homepage": "https://github.com/embark-framework/swarmjs#readme",
"dependencies": {
"@babel/runtime-corejs2": "7.0.0-rc.1",
"klaw": "^3.0.0",
"request": "^2.87.0",
"swarmhash": "^0.1.0",
"through2": "^2.0.3",
"xhr": "^2.5.0",
"yargs": "^12.0.0"
},
"devDependencies": {
"@babel/cli": "7.0.0-rc.1",
"@babel/core": "7.0.0-rc.1",
"@babel/plugin-transform-runtime": "7.0.0-rc.1",
"@babel/preset-env": "7.0.0-rc.1",
"ajv": "6.5.2",
"cross-env": "5.2.0",
"http-server": "0.11.1",
"rimraf": "2.6.2",
"webpack": "4.16.1",
"webpack-cli": "3.0.8",
"eslint": "^4.13.1"
},
"engines": {
"node": ">=8.11.3"
}
}