-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
56 lines (56 loc) · 2.36 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"name": "quickchart-js",
"version": "3.1.3",
"description": "Javascript client for QuickChart.io",
"main": "build/quickchart.cjs.js",
"module": "build/quickchart.mjs",
"browser": "build/quickchart.js",
"types": "build/typescript/index.d.ts",
"exports": {
".": {
"require": "./build/quickchart.cjs.js",
"import": "./build/quickchart.mjs",
"types": "./build/typescript/index.d.ts"
}
},
"repository": "https://github.com/typpo/quickchart-js",
"author": "Ian Webster",
"license": "MIT",
"prepublish": "yarn build",
"scripts": {
"test": "jest --testPathIgnorePatterns=examples/",
"format": "prettier --single-quote --trailing-comma all --print-width 100 --write \"**/*.{js,ts}\"",
"build": "tsc && yarn build:browser && yarn build:esm && yarn build:cjs",
"build:browser": "esbuild src/index.ts --bundle --sourcemap --external:fs --external:crypto --target=es2015 --global-name=QuickChart --tsconfig=tsconfig.json --footer:js=\"QuickChart = QuickChart.default\" --outfile=build/quickchart.js",
"build:cjs": "esbuild src/index.ts --format=cjs --sourcemap --tree-shaking=true --platform=node --target=node10.4 --global-name=QuickChart --tsconfig=tsconfig.json --footer:js=\"module.exports = module.exports.default;\" --outfile=build/quickchart.cjs.js",
"build:esm": "esbuild src/index.ts --sourcemap --tree-shaking=true --platform=node --target=node10.4 --global-name=QuickChart --tsconfig=tsconfig.json --format=esm --outfile=build/quickchart.mjs",
"build:watch": "esbuild src/index.ts --watch --sourcemap --tree-shaking=true --platform=node --target=node10.4 --global-name=QuickChart --tsconfig=tsconfig.json --footer:js=\"module.exports = module.exports.default;\" --outfile=build/quickchart.cjs.js",
"prepublishOnly": "yarn build",
"publish": "yarn publish"
},
"resolutions": {
"moment": "^2.29.4"
},
"dependencies": {
"cross-fetch": "^3.1.5",
"javascript-stringify": "^2.1.0"
},
"devDependencies": {
"@babel/preset-env": "^7.16.4",
"@babel/preset-typescript": "^7.16.0",
"@types/chart.js": "^2.9.37",
"@types/jest": "^27.0.3",
"esbuild": "^0.14.1",
"jest": "^27.4.3",
"jest-fetch-mock": "^3.0.3",
"prettier": "^2.3.2",
"typescript": "^4.5.2"
},
"jest": {
"automock": false,
"resetMocks": false,
"setupFiles": [
"./test/setupJest.js"
]
}
}