Skip to content

Commit

Permalink
update package.json
Browse files Browse the repository at this point in the history
Signed-off-by: ianmuchyri <[email protected]>
  • Loading branch information
ianmuchyri committed Apr 4, 2024
1 parent 6e937e0 commit 1d7aebc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 194 deletions.
182 changes: 4 additions & 178 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 9 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mainflux-sdk",
"version": "0.14.38",
"description": "Official Mainflux Javascript sdk",
"name": "@absmach/magistrala-sdk",
"version": "0.1.0",
"description": "Official Magistrala sdk",
"main": "./dist/sdk.js",
"module": "./dist/sdk.mjs",
"types": "./dist/sdk.d.ts",
Expand All @@ -11,35 +11,28 @@
"files": [
"dist",
"sdk.js",
"src",
"LICENSE"
],
"scripts": {
"build": "tsup",
"test": "echo \"Error: no test specified\" && exit 1",
"replace-axios-import": "find mainflux -type f -name \"*.js\" -exec sed -i 's/const axios = require(\"axios\");/import axios from \"axios\";/g' {} +",
"restore-axios-import": "find mainflux -type f -name \"*.js\" -exec sed -i 's/import axios from \"axios\";/const axios = require(\"axios\");/g' {} +",
"bundle": "npm run replace-axios-import && browserify -r ./mainflux/sdk.js:mfsdk -o bundle.js -p esmify && npm run restore-axios-import",
"lint": "eslint . --ext .ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mainflux/sdk-js.git"
"url": "git+https://github.com/magistrala/sdk-js.git"
},
"keywords": [
"Mainflux",
"mainflux",
"Main-Flux"
"magistrala",
"magistrala"
],
"author": "Nataly Musilah",
"author": "Abstract Machines",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/mainflux/sdk-js/issues"
"url": "https://github.com/magistrala/sdk-js/issues"
},
"homepage": "https://github.com/mainflux/sdk-js#readme",
"homepage": "https://github.com/magistrala/sdk-js#readme",
"dependencies": {
"axios": "^1.5.0",
"mainflux-sdk": "^0.14.38",
"node-fetch": "^3.3.2"
},
"devDependencies": {
Expand Down

0 comments on commit 1d7aebc

Please sign in to comment.