File reorganisation

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
2021-06-22 16:51:27 +02:00
parent f28fa11710
commit 4789c15c7d
14 changed files with 1715 additions and 61 deletions

View File

@ -1,26 +1,44 @@
{
"name": "@tcgdex/sdk",
"version": "2.2.0",
"main": "./tcgdex.js",
"types": "./main.d.ts",
"main": "./dist/cjs/tcgdex.js",
"module": "./dist/modules/tcgdex.js",
"types": "./dist/types/tcgdex.d.ts",
"repository": "https://github.com/tcgdex/javascript-sdk.git",
"license": "MIT",
"devDependencies": {
"@parcel/packager-ts": "2.0.0-beta.2",
"@types/node-fetch": "^2.5.10",
"awesome-typescript-loader": "^5.2.1",
"ts-node": "^10.0.0",
"typescript": "^4.1.3"
"typescript": "^4.1.3",
"webpack": "^5.40.0",
"webpack-nano": "^1.1.1"
},
"dependencies": {
"isomorphic-unfetch": "^3.1.0"
"node-fetch": "^2.6.1",
"unfetch": "^4.2.0"
},
"scripts": {
"build": "tsc --project tsconfig.json",
"build": "yarn build:cjs && yarn build:browser && yarn build:es2015",
"build:cjs": "tsc --project tsconfig.json",
"build:es2015": "tsc --project tsconfig.es2015.json",
"build:browser": "wp --config webpack.config.js",
"prepublishOnly": "yarn build"
},
"files": [
"*.js",
"*.d.ts",
"**/*.js",
"**/*.d.ts"
]
"dist"
],
"sideEffects": false,
"targets": {
"browser": {
"context": "browser",
"engines": {
"browsers": "since 2017-06"
},
"includeNodeModules": true,
"optimize": false,
"scopeHoist": false
}
}
}