diff --git a/opencti-platform/opencti-graphql/package.json b/opencti-platform/opencti-graphql/package.json index cdbc393f011a..c6934bc86eee 100644 --- a/opencti-platform/opencti-graphql/package.json +++ b/opencti-platform/opencti-graphql/package.json @@ -102,6 +102,7 @@ "winston-daily-rotate-file": "4.6.0" }, "devDependencies": { + "@babel/preset-typescript": "^7.16.7", "@graphql-codegen/cli": "2.6.1", "@graphql-codegen/introspection": "2.1.1", "@graphql-codegen/typescript": "2.4.3", @@ -145,5 +146,10 @@ "nconf": "patch:nconf@0.11.3#./patch/nconf-0.11.3.patch", "ldap-filter": "patch:ldap-filter@0.3.3#./patch/ldap-filter-0.3.3.patch" }, + "babel": { + "presets": [ + "@babel/preset-typescript" + ] + }, "packageManager": "yarn@3.1.1" } diff --git a/opencti-platform/opencti-graphql/yarn.lock b/opencti-platform/opencti-graphql/yarn.lock index 09cde4721e94..62847ffb13e8 100644 --- a/opencti-platform/opencti-graphql/yarn.lock +++ b/opencti-platform/opencti-graphql/yarn.lock @@ -518,7 +518,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-typescript@npm:^7.7.2": +"@babel/plugin-syntax-typescript@npm:^7.16.7, @babel/plugin-syntax-typescript@npm:^7.7.2": version: 7.16.7 resolution: "@babel/plugin-syntax-typescript@npm:7.16.7" dependencies: @@ -768,6 +768,32 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-typescript@npm:^7.16.7": + version: 7.16.8 + resolution: "@babel/plugin-transform-typescript@npm:7.16.8" + dependencies: + "@babel/helper-create-class-features-plugin": ^7.16.7 + "@babel/helper-plugin-utils": ^7.16.7 + "@babel/plugin-syntax-typescript": ^7.16.7 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: a76d0afcbd550208cf2e7cdedb4f2d3ca3fa287640a4858a5ee0a28270b784d7d20d5a51b5997dc84514e066a5ebef9e0a0f74ed9fffae09e73984786dd08036 + languageName: node + linkType: hard + +"@babel/preset-typescript@npm:^7.16.7": + version: 7.16.7 + resolution: "@babel/preset-typescript@npm:7.16.7" + dependencies: + "@babel/helper-plugin-utils": ^7.16.7 + "@babel/helper-validator-option": ^7.16.7 + "@babel/plugin-transform-typescript": ^7.16.7 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 44e2f3fa302befe0dc50a01b79e5aa8c27a9c7047c46df665beae97201173030646ddf7c83d7d3ed3724fc38151745b11693e7b4502c81c4cd67781ff5677da5 + languageName: node + linkType: hard + "@babel/runtime-corejs3@npm:^7.10.2": version: 7.17.8 resolution: "@babel/runtime-corejs3@npm:7.17.8" @@ -10534,6 +10560,7 @@ __metadata: version: 0.0.0-use.local resolution: "opencti-graphql@workspace:." dependencies: + "@babel/preset-typescript": ^7.16.7 "@elastic/elasticsearch": 7.17.0 "@graphql-codegen/cli": 2.6.1 "@graphql-codegen/introspection": 2.1.1