82 lines
2.3 KiB
JSON
82 lines
2.3 KiB
JSON
{
|
|
"name": "@stellar/js-xdr",
|
|
"version": "3.1.2",
|
|
"description": "Read/write XDR encoded data structures (RFC 4506)",
|
|
"main": "lib/xdr.js",
|
|
"browser": "dist/xdr.js",
|
|
"module": "src/index.js",
|
|
"scripts": {
|
|
"build": "yarn run build:browser && yarn run build:node",
|
|
"build:browser": "webpack --mode=production --config ./webpack.config.js",
|
|
"build:node": "webpack --mode=development --config ./webpack.config.js",
|
|
"test:node": "yarn run build:node && mocha",
|
|
"test:browser": "yarn run build:browser && karma start",
|
|
"test": "yarn run test:node && yarn run test:browser",
|
|
"test-generate": "bundle exec xdrgen -o generated -n test -l javascript examples/test.x",
|
|
"fmt": "prettier --write '**/*.js'",
|
|
"prepare": "yarn build",
|
|
"clean": "rm -rf lib/ dist/"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/stellar/js-xdr.git"
|
|
},
|
|
"keywords": [],
|
|
"author": "Stellar Development Foundation <hello@stellar.org>",
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/stellar/js-xdr/issues"
|
|
},
|
|
"homepage": "https://github.com/stellar/js-xdr",
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{js,json}": [
|
|
"yarn fmt",
|
|
"git add"
|
|
]
|
|
},
|
|
"mocha": {
|
|
"require": [
|
|
"@babel/register",
|
|
"./test/setup.js"
|
|
],
|
|
"recursive": true,
|
|
"ui": "bdd"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.24.9",
|
|
"@babel/eslint-parser": "^7.24.8",
|
|
"@babel/preset-env": "^7.24.8",
|
|
"@babel/register": "^7.24.6",
|
|
"babel-loader": "^9.1.3",
|
|
"buffer": "^6.0.3",
|
|
"chai": "^4.3.10",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-prefer-import": "^0.0.1",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"husky": "^8.0.3",
|
|
"karma": "^6.4.3",
|
|
"karma-chrome-launcher": "^3.2.0",
|
|
"karma-firefox-launcher": "^2.1.3",
|
|
"karma-mocha": "^2.0.1",
|
|
"karma-sinon-chai": "^2.0.2",
|
|
"karma-webpack": "^5.0.1",
|
|
"lint-staged": "13.2.2",
|
|
"mocha": "^10.6.0",
|
|
"prettier": "^2.8.7",
|
|
"sinon": "^15.2.0",
|
|
"sinon-chai": "^3.7.0",
|
|
"terser-webpack-plugin": "^5.3.10",
|
|
"webpack": "^5.93.0",
|
|
"webpack-cli": "^5.0.2"
|
|
}
|
|
}
|