2019-05-28 23:40:41 +08:00
|
|
|
{
|
|
|
|
"private": true,
|
2024-10-03 03:38:04 +08:00
|
|
|
"version": "4.2.2",
|
2019-05-28 23:40:41 +08:00
|
|
|
"name": "lightweight-charts",
|
|
|
|
"author": "TradingView, Inc.",
|
|
|
|
"license": "Apache-2.0",
|
2023-03-21 18:32:33 +08:00
|
|
|
"description": "Performant financial charts built with HTML5 canvas",
|
2019-05-28 23:40:41 +08:00
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/tradingview/lightweight-charts/issues"
|
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/tradingview/lightweight-charts.git"
|
|
|
|
},
|
2023-01-27 21:55:01 +08:00
|
|
|
"module": "dist/lightweight-charts.production.mjs",
|
2023-01-24 02:02:57 +08:00
|
|
|
"main": "index.cjs",
|
2019-05-28 23:40:41 +08:00
|
|
|
"typings": "dist/typings.d.ts",
|
2022-03-03 20:27:24 +08:00
|
|
|
"exports": {
|
|
|
|
"./package.json": "./package.json",
|
|
|
|
".": {
|
|
|
|
"development": {
|
2023-01-24 02:02:57 +08:00
|
|
|
"types": "./dist/typings.d.ts",
|
2023-01-27 21:55:01 +08:00
|
|
|
"import": "./dist/lightweight-charts.development.mjs",
|
|
|
|
"require": "./dist/lightweight-charts.development.cjs"
|
2022-03-03 20:27:24 +08:00
|
|
|
},
|
|
|
|
"production": {
|
2023-01-24 02:02:57 +08:00
|
|
|
"types": "./dist/typings.d.ts",
|
2023-01-27 21:55:01 +08:00
|
|
|
"import": "./dist/lightweight-charts.production.mjs",
|
|
|
|
"require": "./dist/lightweight-charts.production.cjs"
|
2022-03-03 20:27:24 +08:00
|
|
|
},
|
|
|
|
"default": {
|
2023-01-24 02:02:57 +08:00
|
|
|
"types": "./dist/typings.d.ts",
|
2023-01-27 21:55:01 +08:00
|
|
|
"import": "./dist/lightweight-charts.production.mjs",
|
2023-01-24 02:02:57 +08:00
|
|
|
"require": "./index.cjs"
|
2022-03-03 20:27:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2019-05-28 23:40:41 +08:00
|
|
|
"files": [
|
2022-03-03 20:27:24 +08:00
|
|
|
"dist/**"
|
2019-05-28 23:40:41 +08:00
|
|
|
],
|
|
|
|
"keywords": [
|
|
|
|
"financial-charting-library",
|
|
|
|
"charting-library",
|
|
|
|
"html5-charts",
|
|
|
|
"canvas",
|
|
|
|
"typescript",
|
|
|
|
"charting",
|
|
|
|
"charts"
|
|
|
|
],
|
2019-06-04 22:36:16 +08:00
|
|
|
"engines": {
|
2022-08-10 02:59:27 +08:00
|
|
|
"node": ">=16.16.0"
|
2019-06-04 22:36:16 +08:00
|
|
|
},
|
2019-08-22 23:36:35 +08:00
|
|
|
"dependencies": {
|
2022-11-16 23:32:48 +08:00
|
|
|
"fancy-canvas": "2.1.0"
|
2019-08-22 23:36:35 +08:00
|
|
|
},
|
2019-05-28 23:40:41 +08:00
|
|
|
"devDependencies": {
|
2023-05-20 01:29:40 +08:00
|
|
|
"@rollup/plugin-node-resolve": "~15.0.2",
|
2023-02-06 22:54:35 +08:00
|
|
|
"@rollup/plugin-replace": "~5.0.2",
|
2023-05-20 06:13:06 +08:00
|
|
|
"@rollup/plugin-terser": "~0.4.3",
|
2023-05-20 01:29:40 +08:00
|
|
|
"@size-limit/file": "~8.2.4",
|
|
|
|
"@types/chai": "~4.3.5",
|
|
|
|
"@types/glob": "~8.1.0",
|
2022-12-14 23:54:28 +08:00
|
|
|
"@types/mocha": "~10.0.1",
|
2022-12-15 19:37:32 +08:00
|
|
|
"@types/node": "~16.18.9",
|
2022-08-09 14:27:50 +08:00
|
|
|
"@types/pixelmatch": "~5.2.4",
|
|
|
|
"@types/pngjs": "~6.0.1",
|
2023-05-20 01:29:40 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "~5.59.6",
|
|
|
|
"@typescript-eslint/eslint-plugin-tslint": "~5.59.6",
|
|
|
|
"@typescript-eslint/parser": "~5.59.6",
|
2022-08-09 14:27:50 +08:00
|
|
|
"bytes": "~3.1.2",
|
2022-12-14 23:54:28 +08:00
|
|
|
"chai": "~4.3.7",
|
2021-10-12 05:54:10 +08:00
|
|
|
"chai-exclude": "~2.1.0",
|
2022-08-09 14:27:50 +08:00
|
|
|
"cross-env": "~7.0.3",
|
2023-05-20 01:29:40 +08:00
|
|
|
"dts-bundle-generator": "~8.0.1",
|
2021-09-02 19:51:30 +08:00
|
|
|
"eslint": "~7.32.0",
|
2022-12-14 23:54:28 +08:00
|
|
|
"eslint-plugin-deprecation": "~1.3.3",
|
2023-02-06 22:54:35 +08:00
|
|
|
"eslint-plugin-import": "~2.27.5",
|
2024-07-03 23:07:24 +08:00
|
|
|
"eslint-plugin-jsdoc": "~48.5.0",
|
2022-08-09 14:58:30 +08:00
|
|
|
"eslint-plugin-markdown": "~3.0.0",
|
|
|
|
"eslint-plugin-mdx": "~1.17.0",
|
|
|
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
2023-02-06 22:54:35 +08:00
|
|
|
"eslint-plugin-react": "~7.32.2",
|
2022-12-14 23:54:28 +08:00
|
|
|
"eslint-plugin-tsdoc": "~0.2.17",
|
2022-01-28 01:35:56 +08:00
|
|
|
"eslint-plugin-unicorn": "~40.1.0",
|
2024-10-04 16:59:03 +08:00
|
|
|
"express": "~4.20.0",
|
2023-05-20 01:29:40 +08:00
|
|
|
"glob": "~10.2.5",
|
2022-08-09 14:27:50 +08:00
|
|
|
"markdown-it": "~13.0.1",
|
2023-05-20 01:29:40 +08:00
|
|
|
"markdown-it-anchor": "~8.6.7",
|
|
|
|
"markdownlint-cli": "~0.34.0",
|
|
|
|
"memlab": "~1.1.39",
|
2022-12-14 23:54:28 +08:00
|
|
|
"mocha": "~10.2.0",
|
2019-05-28 23:40:41 +08:00
|
|
|
"npm-run-all": "~4.1.5",
|
2022-08-09 14:27:50 +08:00
|
|
|
"pixelmatch": "~5.3.0",
|
2023-05-20 01:29:40 +08:00
|
|
|
"pngjs": "~7.0.0",
|
|
|
|
"puppeteer": "~20.2.1",
|
|
|
|
"rimraf": "~5.0.1",
|
2024-10-04 16:59:03 +08:00
|
|
|
"rollup": "~3.29.5",
|
2023-05-20 01:29:40 +08:00
|
|
|
"size-limit": "~8.2.4",
|
2022-08-09 03:42:28 +08:00
|
|
|
"ts-node": "~10.9.1",
|
2023-05-20 01:29:40 +08:00
|
|
|
"ts-transformer-properties-rename": "~0.16.0",
|
2020-05-09 03:15:26 +08:00
|
|
|
"ts-transformer-strip-const-enums": "~1.0.1",
|
2023-05-20 01:29:40 +08:00
|
|
|
"tslib": "2.5.2",
|
2020-09-18 21:48:32 +08:00
|
|
|
"tslint": "6.1.3",
|
2019-05-28 23:40:41 +08:00
|
|
|
"tslint-eslint-rules": "~5.4.0",
|
|
|
|
"tslint-microsoft-contrib": "~6.2.0",
|
2022-12-14 23:54:28 +08:00
|
|
|
"ttypescript": "~1.5.15",
|
2023-03-19 02:08:46 +08:00
|
|
|
"typescript": "4.9.5",
|
2023-05-20 01:29:40 +08:00
|
|
|
"yargs": "~17.7.2"
|
2019-05-28 23:40:41 +08:00
|
|
|
},
|
|
|
|
"scripts": {
|
2020-07-06 22:20:43 +08:00
|
|
|
"postinstall": "npm run install-hooks",
|
2023-01-11 07:20:08 +08:00
|
|
|
"install-hooks": "node scripts/githooks/install.js",
|
2019-05-28 23:40:41 +08:00
|
|
|
"clean": "rimraf lib/ dist/",
|
2023-01-11 07:20:08 +08:00
|
|
|
"bundle-dts": "tsc --noEmit --allowJs dts-config.js && dts-bundle-generator --config dts-config.js",
|
2020-05-15 19:58:12 +08:00
|
|
|
"tsc": "ttsc -p tsconfig.prod.json",
|
2019-08-15 17:10:31 +08:00
|
|
|
"tsc-watch": "npm run tsc -- --watch --preserveWatchOutput",
|
2022-04-07 00:35:55 +08:00
|
|
|
"tsc-verify": "node website/scripts/generate-versions-dts.js && tsc -b tsconfig.composite.json",
|
2019-05-28 23:40:41 +08:00
|
|
|
"lint": "npm-run-all -p lint:**",
|
2022-02-04 04:51:26 +08:00
|
|
|
"lint:eslint": "eslint --format=unix ./",
|
2022-02-11 17:37:25 +08:00
|
|
|
"lint:md": "markdownlint -i \"**/node_modules/**\" -i \"**/website/docs/api/**\" -i \"**/website/versioned_docs/**/api/**\" \"**/*.md\"",
|
2021-10-25 17:59:30 +08:00
|
|
|
"check-dts-docs": "eslint --format=unix ./dist/typings.d.ts",
|
2023-01-11 07:20:08 +08:00
|
|
|
"check-markdown-links": "node scripts/check-markdown-links.js",
|
2019-05-28 23:40:41 +08:00
|
|
|
"rollup": "rollup -c rollup.config.js",
|
2019-09-17 21:59:47 +08:00
|
|
|
"rollup-watch": "npm run rollup -- --watch",
|
2019-05-28 23:40:41 +08:00
|
|
|
"build": "npm-run-all tsc rollup bundle-dts",
|
2019-09-17 21:59:47 +08:00
|
|
|
"build:watch": "npm-run-all tsc -p tsc-watch rollup-watch",
|
2019-07-25 16:34:07 +08:00
|
|
|
"build:prod": "cross-env NODE_ENV=production npm run build",
|
2020-06-28 05:58:47 +08:00
|
|
|
"build:release": "cross-env BUILD_TAG=release npm run build:prod",
|
2020-11-13 02:42:56 +08:00
|
|
|
"prepare-release": "npm-run-all clean build:release && npm run prepare-package-json-for-release",
|
2023-01-11 07:20:08 +08:00
|
|
|
"prepare-package-json-for-release": "node ./scripts/clean-package-json.js",
|
2020-06-30 03:33:49 +08:00
|
|
|
"size-limit": "size-limit",
|
2023-06-03 05:24:12 +08:00
|
|
|
"verify": "npm-run-all clean -p build:prod check-markdown-links -p lint check-dts-docs tsc-verify test size-limit -p type-tests",
|
|
|
|
"test": "mocha tests/unittests/**/*.spec.ts",
|
|
|
|
"type-tests": "tsc -p ./tests/type-checks/tsconfig.composite.json --noEmit"
|
2019-05-28 23:40:41 +08:00
|
|
|
}
|
|
|
|
}
|