-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
158 lines (158 loc) · 4.19 KB
/
Copy pathpackage.json
File metadata and controls
158 lines (158 loc) · 4.19 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "efactura-sdk",
"version": "4.0.3",
"description": "Complete TypeScript SDK for Romanian ANAF API E-Factura, supporting OAuth2 authentication, invoice management, XML validation, PDF conversion, and more.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"files": [
"dist/**/*",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "git+https://github.com/boobo94/efactura-sdk.git"
},
"homepage": "https://github.com/boobo94/efactura-sdk#readme",
"bugs": {
"url": "https://github.com/boobo94/efactura-sdk/issues"
},
"keywords": [
"anaf",
"efactura",
"e-factura",
"romania",
"romanian",
"ubl",
"cius-ro",
"oauth2",
"certificate",
"usb-token",
"smartcard",
"pkcs11",
"typescript",
"sdk",
"api",
"invoice",
"xml",
"validation",
"pdf",
"conversion",
"tax",
"vat",
"fiscal"
],
"author": {
"name": "Bogdan Alexandru Militaru",
"email": "militaru.bogdanalexandru@gmail.com",
"url": "https://github.com/boobo94"
},
"license": "MIT",
"engines": {
"node": ">=20.0.0",
"npm": ">=6.0.0"
},
"scripts": {
"build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "tsc -p tsconfig.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:types": "tsc -p tsconfig.types.json",
"clean": "rimraf dist",
"dev": "tsc -p tsconfig.json --watch",
"lint": "eslint 'src/**/*.{ts,tsx}' --fix",
"lint:check": "eslint 'src/**/*.{ts,tsx}'",
"format": "prettier --write 'src/**/*.{ts,tsx,js,json,md}'",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:ci": "jest tests/*.unit.test.ts --coverage --ci --watchAll=false",
"test:unit": "jest tests/*.unit.test.ts --verbose",
"test:integration": "jest tests/*.integration.test.ts --verbose --runInBand",
"test:auth": "jest tests/auth.integration.test.ts --verbose",
"test:all": "yarn run test:unit && yarn run test:integration",
"validate": "yarn run lint:check && yarn run lint:check && yarn run test:ci",
"prepublishOnly": "yarn run validate",
"prepack": "yarn run build",
"postpack": "yarn run clean",
"release": "yarn run validate && yarn publish",
"release:dry": "yarn run validate && yarn publish --dry-run"
},
"dependencies": {
"date-fns": "^4.1.0",
"decompress": "^4.2.1",
"qs": "^6.15.1",
"xml2js": "^0.6.2",
"xmlbuilder2": "^4.0.3"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/decompress": "^4.2.7",
"@types/express": "^5.0.6",
"@types/jest": "^30.0.0",
"@types/node": "^25.6.0",
"@types/qs": "^6.15.0",
"@types/xml2js": "^0.4.14",
"@typescript-eslint/eslint-plugin": "^8.58.2",
"@typescript-eslint/parser": "^8.58.2",
"dotenv": "^17.4.2",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.5",
"eslint-import-resolver-typescript": "^4.3.5",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^29.15.2",
"eslint-plugin-prettier": "^5.5.5",
"express": "^5.2.1",
"jest": "^30.3.0",
"prettier": "^3.8.3",
"rimraf": "^6.1.3",
"ts-jest": "^29.4.9",
"ts-node": "^10.9.1",
"typescript": "^6.0.2"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"jest": {
"preset": "ts-jest",
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.test.json"
}
},
"testEnvironment": "node",
"testMatch": [
"**/tests/**/*.test.ts",
"**/?(*.)+(spec|test).ts"
],
"collectCoverageFrom": [
"src/**/*.ts",
"!src/**/*.d.ts",
"!src/**/__tests__/**",
"!src/**/*.test.ts"
],
"coverageDirectory": "coverage",
"coverageReporters": [
"text",
"lcov",
"html"
],
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 80,
"lines": 70,
"statements": 70
}
}
}
}