@sap-ux/project-input-validator 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # @sap-ux/project-input-validator
2
+ Library that provides utility functions to validate input constraints required by Fiori projects.
3
+ For example, validate Fiori project name text length limit, special characters that are not allowed
4
+ in the naming, SAP client format, project description text length limit, etc.
5
+
6
+ This library provides reusable validation utilities to support validations required in tools that facilitate
7
+ Fiori project generation, deployment configuration, etc.
8
+
9
+ ## Installation
10
+ Npm
11
+ `npm install --save @sap-ux/project-input-validator`
12
+
13
+ Yarn
14
+ `yarn add @sap-ux/project-input-validator`
15
+
16
+ Pnpm
17
+ `pnpm add @sap-ux/project-input-validator`
18
+
19
+ ## Usage
20
+ See example usage in [test folder](./test/validators.test.ts).
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type { TOptions } from 'i18next';
2
+ export declare const PROJECT_INPUT_VALIDATOR_NS = "project-input-validator";
3
+ /**
4
+ * Initialize i18next with the translations for this module.
5
+ */
6
+ export declare function initI18n(): Promise<void>;
7
+ /**
8
+ * Helper function facading the call to i18next.
9
+ *
10
+ * @param key i18n key
11
+ * @param options additional options
12
+ * @returns {string} localized string stored for the given key
13
+ */
14
+ export declare function t(key: string, options?: TOptions): string;
15
+ //# sourceMappingURL=i18n.d.ts.map
package/dist/i18n.js ADDED
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.t = exports.initI18n = exports.PROJECT_INPUT_VALIDATOR_NS = void 0;
16
+ const i18next_1 = __importDefault(require("i18next"));
17
+ const common_i18n_json_1 = __importDefault(require("./translations/common.i18n.json"));
18
+ exports.PROJECT_INPUT_VALIDATOR_NS = 'project-input-validator';
19
+ /**
20
+ * Initialize i18next with the translations for this module.
21
+ */
22
+ function initI18n() {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ yield i18next_1.default.init({
25
+ resources: {
26
+ en: {
27
+ [exports.PROJECT_INPUT_VALIDATOR_NS]: common_i18n_json_1.default
28
+ }
29
+ },
30
+ lng: 'en',
31
+ fallbackLng: 'en',
32
+ defaultNS: exports.PROJECT_INPUT_VALIDATOR_NS,
33
+ ns: [exports.PROJECT_INPUT_VALIDATOR_NS]
34
+ });
35
+ });
36
+ }
37
+ exports.initI18n = initI18n;
38
+ /**
39
+ * Helper function facading the call to i18next.
40
+ *
41
+ * @param key i18n key
42
+ * @param options additional options
43
+ * @returns {string} localized string stored for the given key
44
+ */
45
+ function t(key, options) {
46
+ return i18next_1.default.t(key, options);
47
+ }
48
+ exports.t = t;
49
+ initI18n().catch(() => {
50
+ // Ignore any errors since the write will still work
51
+ });
52
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1,2 @@
1
+ export * from './validators';
2
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./validators"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,14 @@
1
+ {
2
+ "AbapAppDescLength": "Deployment Description should not exceed 60 characters",
3
+ "InvalidClient": "[{{client}}] is invalid. Enter blank or a value between 000-999",
4
+ "AbapTransportNumRequired": "Provide a transport request for your application",
5
+ "AbapPackageWarn": "Provide a package",
6
+ "InvalidUrl": "Invalid URL: [{{input}}]",
7
+ "AbapAppNameRequired": "Application name required",
8
+ "AbapInvalidNamespace": "Namespace invalid as there are too many forward slashes",
9
+ "AbapInvalidNamespaceLength": "Namespace limited to 10 characters, entered {{length}}",
10
+ "AbapInvalidAppNameLength": "Application name limited to 15 characters, entered {{length}}",
11
+ "AbapInvalidAppName": "Application name needs to be prefixed with [{{prefix}}]",
12
+ "CharactersForbiddenInAppName": "Only alphanumeric, underscore and slash characters are allowed",
13
+ "InvalidAppNameMultipleReason": "Application name is invaid for multiple reasons:"
14
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Validator Fiori app name is compatbiel with Fiori project requirements.
3
+ *
4
+ * @param name Fiori app name
5
+ * @param prefix Prefix required by backend system
6
+ * @returns True or error message
7
+ */
8
+ export declare function validateAppName(name: string, prefix?: string): boolean | string;
9
+ /**
10
+ * Validate Fiori app description length is not exceeding 60 characters.
11
+ *
12
+ * @param description Fiori app description
13
+ * @returns true or error message
14
+ */
15
+ export declare function validateAppDescription(description: string): boolean | string;
16
+ /**
17
+ * Client number is either empty or 3 digit string.
18
+ *
19
+ * @param client ABAP system client number
20
+ * @returns true or error message
21
+ */
22
+ export declare function validateClient(client: string): boolean | string;
23
+ /**
24
+ * Transport request number is not required for local package.
25
+ *
26
+ * @param transportRequest Transport request number
27
+ * @param packageName Package name
28
+ * @returns true or error message
29
+ */
30
+ export declare function validateTransportRequestNumber(transportRequest: string, packageName: string): boolean | string;
31
+ /**
32
+ * Validate package name cannot be empty.
33
+ *
34
+ * @param input Package name
35
+ * @returns true or error message
36
+ */
37
+ export declare function validatePackage(input: string): boolean | string;
38
+ /**
39
+ * Validate url input is valid url format.
40
+ *
41
+ * @param input Backend ABAP system url
42
+ * @returns true or error message
43
+ */
44
+ export declare function validateUrl(input: string): boolean | string;
45
+ //# sourceMappingURL=validators.d.ts.map
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateUrl = exports.validatePackage = exports.validateTransportRequestNumber = exports.validateClient = exports.validateAppDescription = exports.validateAppName = void 0;
4
+ const i18n_1 = require("./i18n");
5
+ const os_1 = require("os");
6
+ /**
7
+ * Validator Fiori app name is compatbiel with Fiori project requirements.
8
+ *
9
+ * @param name Fiori app name
10
+ * @param prefix Prefix required by backend system
11
+ * @returns True or error message
12
+ */
13
+ function validateAppName(name, prefix) {
14
+ const errorMessages = [];
15
+ const length = name ? name.trim().length : 0;
16
+ if (!length) {
17
+ return (0, i18n_1.t)('AbapAppNameRequired');
18
+ }
19
+ if (name.split('/').length > 3) {
20
+ errorMessages.push((0, i18n_1.t)('AbapInvalidNamespace'));
21
+ }
22
+ else if (/^\/.*\/\w*$/g.test(name)) {
23
+ const splitNames = name.split('/');
24
+ let accumulatedMsg = '';
25
+ if (splitNames[1].length > 10) {
26
+ const errMsg = (0, i18n_1.t)('AbapInvalidNamespaceLength', { length: splitNames[1].length });
27
+ accumulatedMsg += `${errMsg}, `;
28
+ }
29
+ if (splitNames[2].length > 15) {
30
+ const errMsg = (0, i18n_1.t)('AbapInvalidAppNameLength', { length: splitNames[2].length });
31
+ accumulatedMsg += `${errMsg}, `;
32
+ }
33
+ if (accumulatedMsg) {
34
+ accumulatedMsg = accumulatedMsg.substring(0, accumulatedMsg.length - 2);
35
+ errorMessages.push(accumulatedMsg);
36
+ }
37
+ }
38
+ else if (length > 15) {
39
+ errorMessages.push((0, i18n_1.t)('AbapInvalidAppNameLength', { length }));
40
+ }
41
+ if (prefix && !name.toUpperCase().startsWith(prefix.toUpperCase())) {
42
+ errorMessages.push((0, i18n_1.t)('AbapInvalidAppName', { prefix }));
43
+ }
44
+ if (!/^[A-Za-z0-9_/]*$/.test(name)) {
45
+ errorMessages.push((0, i18n_1.t)('CharactersForbiddenInAppName'));
46
+ }
47
+ return processErrorMessages(errorMessages);
48
+ }
49
+ exports.validateAppName = validateAppName;
50
+ /**
51
+ * Helper function to format an array of error messages to a single string.
52
+ *
53
+ * @param errorMessages Array of error messages
54
+ * @returns Returns true or formatted error message string
55
+ */
56
+ function processErrorMessages(errorMessages) {
57
+ if (errorMessages.length === 0) {
58
+ return true;
59
+ }
60
+ else if (errorMessages.length === 1) {
61
+ return errorMessages[0];
62
+ }
63
+ else {
64
+ return `${(0, i18n_1.t)('InvalidAppNameMultipleReason')}${os_1.EOL}${errorMessages.join(os_1.EOL)}${os_1.EOL}`;
65
+ }
66
+ }
67
+ /**
68
+ * Validate Fiori app description length is not exceeding 60 characters.
69
+ *
70
+ * @param description Fiori app description
71
+ * @returns true or error message
72
+ */
73
+ function validateAppDescription(description) {
74
+ if (description.length > 60) {
75
+ return (0, i18n_1.t)('AbapAppDescLength');
76
+ }
77
+ else {
78
+ return true;
79
+ }
80
+ }
81
+ exports.validateAppDescription = validateAppDescription;
82
+ /**
83
+ * Client number is either empty or 3 digit string.
84
+ *
85
+ * @param client ABAP system client number
86
+ * @returns true or error message
87
+ */
88
+ function validateClient(client) {
89
+ const formattedInput = (client === null || client === void 0 ? void 0 : client.trim()) || '';
90
+ const isValid = formattedInput === '' || /^\d{3}$/.test(formattedInput);
91
+ if (isValid) {
92
+ return true;
93
+ }
94
+ else {
95
+ return (0, i18n_1.t)('InvalidClient', { client });
96
+ }
97
+ }
98
+ exports.validateClient = validateClient;
99
+ /**
100
+ * Transport request number is not required for local package.
101
+ *
102
+ * @param transportRequest Transport request number
103
+ * @param packageName Package name
104
+ * @returns true or error message
105
+ */
106
+ function validateTransportRequestNumber(transportRequest, packageName) {
107
+ const regex = /^[$LlTt]/;
108
+ if (regex.test(packageName) && (transportRequest === null || transportRequest === void 0 ? void 0 : transportRequest.trim())) {
109
+ return (0, i18n_1.t)('AbapTransportNumRequired');
110
+ }
111
+ else {
112
+ return true;
113
+ }
114
+ }
115
+ exports.validateTransportRequestNumber = validateTransportRequestNumber;
116
+ /**
117
+ * Validate package name cannot be empty.
118
+ *
119
+ * @param input Package name
120
+ * @returns true or error message
121
+ */
122
+ function validatePackage(input) {
123
+ if (!(input === null || input === void 0 ? void 0 : input.trim())) {
124
+ return (0, i18n_1.t)('AbapPackageWarn');
125
+ }
126
+ else {
127
+ return true;
128
+ }
129
+ }
130
+ exports.validatePackage = validatePackage;
131
+ /**
132
+ * Validate url input is valid url format.
133
+ *
134
+ * @param input Backend ABAP system url
135
+ * @returns true or error message
136
+ */
137
+ function validateUrl(input) {
138
+ try {
139
+ const url = new URL(input);
140
+ return !!url.protocol && !!url.host;
141
+ }
142
+ catch (_a) {
143
+ return (0, i18n_1.t)('InvalidUrl', { input });
144
+ }
145
+ }
146
+ exports.validateUrl = validateUrl;
147
+ //# sourceMappingURL=validators.js.map
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@sap-ux/project-input-validator",
3
+ "version": "0.1.0",
4
+ "description": "Library to validate Fiori project input formats",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/SAP/open-ux-tools.git",
8
+ "directory": "packages/project-input-validator"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aproject-input-validator"
12
+ },
13
+ "license": "Apache-2.0",
14
+ "private": false,
15
+ "main": "dist/index.js",
16
+ "dependencies": {
17
+ "i18next": "20.3.2"
18
+ },
19
+ "devDependencies": {},
20
+ "files": [
21
+ "dist",
22
+ "LICENSE",
23
+ "!dist/*.map",
24
+ "!dist/**/*.map"
25
+ ],
26
+ "engines": {
27
+ "pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
28
+ "node": ">= 14.16.0 < 15.0.0 || >=16.1.0 < 17.0.0 || >=18.0.0 < 19.0.0"
29
+ },
30
+ "scripts": {
31
+ "build": "tsc --build",
32
+ "watch": "tsc --watch",
33
+ "clean": "rimraf --glob dist coverage *.tsbuildinfo",
34
+ "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
35
+ "lint": "eslint . --ext .ts",
36
+ "lint:fix": "eslint . --ext .ts --fix",
37
+ "test": "jest --ci --forceExit --detectOpenHandles --colors",
38
+ "test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
39
+ "link": "pnpm link --global",
40
+ "unlink": "pnpm unlink --global"
41
+ }
42
+ }