2022-06-01 15:06:00 +08:00
|
|
|
{
|
|
|
|
"name": "amis-formula",
|
2023-05-06 16:28:18 +08:00
|
|
|
"version": "3.0.0",
|
2022-06-01 15:06:00 +08:00
|
|
|
"description": "负责 amis 里面的表达式实现,内置公式,编辑器等",
|
2022-06-07 15:36:22 +08:00
|
|
|
"main": "lib/index.js",
|
2022-11-02 22:45:12 +08:00
|
|
|
"module": "esm/index.js",
|
2022-06-28 16:15:46 +08:00
|
|
|
"types": "lib/index.d.ts",
|
2022-06-01 15:06:00 +08:00
|
|
|
"scripts": {
|
2022-11-04 15:14:44 +08:00
|
|
|
"build": "npm run clean-dist && npm run genDoc && cross-env NODE_ENV=production rollup -c && cp src/doc.md lib/doc.md && cp src/doc.md esm/doc.md",
|
|
|
|
"lib": "npm run clean-dist && cross-env NODE_ENV=production IS_LIB=1 rollup -c",
|
2022-11-02 11:02:06 +08:00
|
|
|
"clean-dist": "rimraf lib/**",
|
2022-06-07 17:33:25 +08:00
|
|
|
"declaration": "tsc --project tsconfig-for-declaration.json --allowJs --declaration --emitDeclarationOnly --declarationDir ./lib --rootDir ./src",
|
2022-06-01 15:06:00 +08:00
|
|
|
"test": "jest",
|
2022-06-27 18:36:01 +08:00
|
|
|
"update-snapshot": "jest --updateSnapshot",
|
2022-06-01 15:06:00 +08:00
|
|
|
"coverage": "jest --coverage",
|
2022-06-07 14:23:32 +08:00
|
|
|
"genDoc": "ts-node ./scripts/genDoc.ts"
|
2022-06-01 15:06:00 +08:00
|
|
|
},
|
2022-11-02 22:45:12 +08:00
|
|
|
"exports": {
|
|
|
|
".": {
|
|
|
|
"require": "./lib/index.js",
|
|
|
|
"import": "./esm/index.js"
|
|
|
|
},
|
|
|
|
"./lib/*": {
|
|
|
|
"require": "./lib/*.js",
|
|
|
|
"import": "./esm/*.js"
|
|
|
|
}
|
|
|
|
},
|
2022-06-01 15:06:00 +08:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/aisuda/amis-tpl.git"
|
|
|
|
},
|
|
|
|
"keywords": [
|
|
|
|
"amis",
|
|
|
|
"tpl",
|
|
|
|
"parser",
|
|
|
|
"formula"
|
|
|
|
],
|
|
|
|
"files": [
|
2022-11-02 22:45:12 +08:00
|
|
|
"lib",
|
|
|
|
"esm"
|
2022-06-01 15:06:00 +08:00
|
|
|
],
|
|
|
|
"author": "fex",
|
|
|
|
"license": "MIT",
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/aisuda/amis-tpl/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://github.com/aisuda/amis-tpl#readme",
|
|
|
|
"dependencies": {
|
|
|
|
"lodash": "^4.17.15",
|
2022-07-29 18:09:07 +08:00
|
|
|
"moment": "^2.29.4",
|
2022-06-01 15:06:00 +08:00
|
|
|
"tslib": "^2.3.1"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-08-16 12:46:28 +08:00
|
|
|
"@rollup/plugin-commonjs": "^22.0.2",
|
2022-06-06 15:15:37 +08:00
|
|
|
"@rollup/plugin-json": "^4.1.0",
|
2022-09-27 10:20:24 +08:00
|
|
|
"@rollup/plugin-node-resolve": "^14.1.0",
|
2022-08-16 12:46:28 +08:00
|
|
|
"@rollup/plugin-typescript": "^8.3.4",
|
2022-06-01 15:06:00 +08:00
|
|
|
"@types/doctrine": "0.0.5",
|
2022-06-06 15:15:37 +08:00
|
|
|
"@types/jest": "^28.1.0",
|
2022-06-01 15:06:00 +08:00
|
|
|
"@types/lodash": "^4.14.175",
|
2022-11-04 15:14:44 +08:00
|
|
|
"cross-env": "^7.0.3",
|
2022-06-01 15:06:00 +08:00
|
|
|
"doctrine": "^3.0.0",
|
2022-09-27 10:20:24 +08:00
|
|
|
"jest": "^29.0.3",
|
2022-06-01 15:06:00 +08:00
|
|
|
"jest-canvas-mock": "^2.3.0",
|
2022-09-27 10:20:24 +08:00
|
|
|
"jest-environment-jsdom": "^29.0.3",
|
2022-06-01 15:06:00 +08:00
|
|
|
"mini-css-extract-plugin": "^2.4.5",
|
|
|
|
"moment-timezone": "^0.5.33",
|
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"rollup": "^2.60.2",
|
|
|
|
"rollup-plugin-license": "^2.6.0",
|
|
|
|
"rollup-plugin-terser": "^7.0.2",
|
2022-09-20 09:28:58 +08:00
|
|
|
"sass": "^1.54.9",
|
2022-06-01 15:06:00 +08:00
|
|
|
"sass-loader": "^12.1.0",
|
|
|
|
"style-loader": "^3.2.1",
|
|
|
|
"stylelint": "^13.0.0",
|
2022-09-27 10:20:24 +08:00
|
|
|
"ts-jest": "^29.0.2",
|
2022-06-01 15:06:00 +08:00
|
|
|
"ts-loader": "^9.2.3",
|
|
|
|
"ts-node": "^10.4.0",
|
|
|
|
"typescript": "^4.3.5"
|
|
|
|
},
|
|
|
|
"browserslist": "IE >= 11",
|
|
|
|
"jest": {
|
|
|
|
"testEnvironment": "jsdom",
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"src/**/*"
|
|
|
|
],
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"js"
|
|
|
|
],
|
|
|
|
"transform": {
|
2022-09-27 10:20:24 +08:00
|
|
|
"\\.(ts|tsx)$": [
|
|
|
|
"ts-jest",
|
|
|
|
{
|
|
|
|
"diagnostics": false
|
|
|
|
}
|
|
|
|
]
|
2022-06-01 15:06:00 +08:00
|
|
|
},
|
|
|
|
"setupFiles": [
|
|
|
|
"jest-canvas-mock"
|
|
|
|
],
|
|
|
|
"testRegex": "/.*\\.test\\.(ts|tsx|js)$",
|
|
|
|
"moduleNameMapper": {
|
|
|
|
"\\.(css|less|sass|scss)$": "<rootDir>/../__mocks__/styleMock.js",
|
|
|
|
"\\.(svg)$": "<rootDir>/../__mocks__/svgMock.js"
|
|
|
|
},
|
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"<rootDir>/__tests__/jest.setup.js"
|
2022-09-30 18:09:35 +08:00
|
|
|
],
|
|
|
|
"snapshotFormat": {
|
|
|
|
"escapeString": false,
|
|
|
|
"printBasicPrototype": false
|
|
|
|
}
|
2022-06-07 14:23:32 +08:00
|
|
|
},
|
2022-07-11 17:22:51 +08:00
|
|
|
"gitHead": "37d23b4a8eb1c663bc38e8dd9040889ea1526ec4"
|
2022-06-01 15:06:00 +08:00
|
|
|
}
|