-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
99 lines (99 loc) · 3.33 KB
/
package.json
File metadata and controls
99 lines (99 loc) · 3.33 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "@cap-js/data-inspector",
"version": "1.0.0",
"description": "CAP Node.js plugin to view data content of CDS entities defined in a CAP Node.js application.",
"author": "SAP SE (https://www.sap.com)",
"repository": "https://github.com/cap-js/data-inspector.git",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"main": "cds-plugin.js",
"scripts": {
"lint": "npx eslint .",
"prettier:check": "npx prettier --check .",
"dev": "cds watch test/ --include .. --open data-inspector-ui",
"prebuild": "rimraf gen && rimraf @cds-models",
"build": "npm run generate-types && tsc && npm run copy:cds && npm run copy:package.json",
"generate-types": "npx @cap-js/cds-typer \"*\"",
"copy:cds": "node -e \"require('fs').copyFileSync('srv/DataInspectorService.cds', 'gen/srv/DataInspectorService.cds')\" && node -e \"require('fs').copyFileSync('srv/DataInspectorServiceAnnotations.cds', 'gen/srv/DataInspectorServiceAnnotations.cds')\" && node -e \"require('fs').copyFileSync('srv/index.cds', 'gen/srv/index.cds')\" && node -e \"require('fs').copyFileSync('index.cds', 'gen/index.cds')\"",
"copy:package.json": "node -e \"require('fs').copyFileSync('package.json', 'gen/package.json')\"",
"copy:i18n": "node -e \"require('fs').cpSync('_i18n', 'gen/_i18n', { recursive: true })\"",
"copy:templates": "node -e \"require('fs').cpSync('templates', 'gen/templates/', { recursive: true })\"",
"postbuild": "npm run copy:ui && npm run copy:i18n && npm run copy:templates",
"copy:ui": "node -e \"require('fs').cpSync('app/data-inspector-ui', 'gen/app/data-inspector-ui', { recursive: true })\"",
"tar": "npm run build && cd gen && npm pack",
"watch-data-inspector-ui": "cds watch --open data-inspector-ui/webapp/index.html?sap-ui-xx-viewCache=false",
"test": "cross-env CDS_TYPESCRIPT=true mocha",
"coverage": "cross-env CDS_TYPESCRIPT=true c8 mocha"
},
"peerDependencies": {
"@cap-js/audit-logging": ">=1",
"@sap/cds": ">=9"
},
"peerDependenciesMeta": {
"@cap-js/audit-logging": {
"optional": true
}
},
"devDependencies": {
"@cap-js/audit-logging": "1.2.0",
"@cap-js/cds-test": "0.4.1",
"@cap-js/cds-typer": "0.38.0",
"@cap-js/cds-types": "0.16.0",
"@cap-js/sqlite": "2.2.0",
"@sap/cds-dk": "9.8.3",
"@types/mocha": "10.0.10",
"@types/node": "24.12.0",
"c8": "11.0.0",
"chai": "6.2.2",
"cross-env": "10.1.0",
"eslint": "10.2.0",
"eslint-config-prettier": "10.1.8",
"mocha": "11.7.5",
"prettier": "3.8.1",
"rimraf": "6.1.3",
"ts-node": "10.9.2",
"tsx": "4.21.0",
"typescript": "5.9.3",
"typescript-eslint": "8.58.0"
},
"files": [
"@cds-models",
"srv",
"app",
"lib",
"templates",
"cds-plugin.js",
"index.cds",
"package.json",
"_i18n"
],
"sapux": [
"app/data-inspector-ui"
],
"cds": {
"requires": {
"@cap-js/data-inspector": {
"model": "@cap-js/data-inspector"
},
"[development]": {
"auth": {
"kind": "mocked",
"users": {
"alice": {
"roles": [
"admin",
"capDataInspectorReadonly"
]
}
}
}
}
}
},
"imports": {
"#cds-models/*": "./@cds-models/*/index.js"
},
"workspaces": [
"test"
]
}