add xrpl-models package

This commit is contained in:
Denis Angell
2023-07-19 03:49:56 +02:00
parent 5ec6729c61
commit bb336a3913
3 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{
"name": "@transia/xrpl-models",
"version": "2.9.1",
"description": "",
"private": false,
"main": "dist/models/index.js",
"files": [
"dist/**/*"
],
"author": {
"name": "Denis Angell",
"url": "https://github.com/dangell7"
},
"license": "MIT",
"scripts": {},
"dependencies": {
"@types/node": "^20.4.2",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=12.0.0",
"npm": ">=7.0.0 < 10.0.0"
}
}

View File

@@ -54,6 +54,7 @@
"build": "run-s build:lib build:snippets build:web", "build": "run-s build:lib build:snippets build:web",
"build:snippets": "tsc --build ./snippets/tsconfig.json", "build:snippets": "tsc --build ./snippets/tsconfig.json",
"build:lib": "tsc --build tsconfig.build.json", "build:lib": "tsc --build tsconfig.build.json",
"build:models": "tsc --build tsconfig.models.json",
"build:web": "webpack", "build:web": "webpack",
"build:browserTests": "webpack --config ./test/webpack.config.js", "build:browserTests": "webpack --config ./test/webpack.config.js",
"analyze": "run-s build:web --analyze", "analyze": "run-s build:web --analyze",

View File

@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "../xrpl-models/dist"
},
"include": ["./src/models/**/*.ts", "./src/errors.ts"],
}