Skip to content

Commit ac8e936

Browse files
author
Robert Austin
authored
[Resolver] generator uses setup_node_env (#76422)
1 parent 9a7c418 commit ac8e936

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

x-pack/plugins/security_solution/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"cypress:open": "cypress open --config-file ./cypress/cypress.json",
1111
"cypress:run": "cypress run --browser chrome --headless --spec ./cypress/integration/**/*.spec.ts --config-file ./cypress/cypress.json --reporter ../../node_modules/cypress-multi-reporters --reporter-options configFile=./cypress/reporter_config.json; status=$?; ../../node_modules/.bin/mochawesome-merge --reportDir ../../../target/kibana-security-solution/cypress/results > ../../../target/kibana-security-solution/cypress/results/output.json; ../../../node_modules/.bin/marge ../../../target/kibana-security-solution/cypress/results/output.json --reportDir ../../../target/kibana-security-solution/cypress/results; mkdir -p ../../../target/junit && cp ../../../target/kibana-security-solution/cypress/results/*.xml ../../../target/junit/ && exit $status;",
1212
"cypress:run-as-ci": "node ../../../scripts/functional_tests --config ../../test/security_solution_cypress/config.ts",
13-
"test:generate": "ts-node --project scripts/endpoint/cli_tsconfig.json scripts/endpoint/resolver_generator.ts"
13+
"test:generate": "node scripts/endpoint/resolver_generator"
1414
},
1515
"devDependencies": {
1616
"@types/md5": "^2.2.0",

x-pack/plugins/security_solution/scripts/endpoint/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ The default behavior is to create 1 endpoint with 1 alert and a moderate number
55
A seed value can be provided as a string for the random number generator for repeatable behavior, useful for demos etc.
66
Use the `-d` option if you want to delete and remake the indices, otherwise it will add documents to existing indices.
77

8-
The sample data generator script depends on ts-node, install with npm:
9-
10-
`npm install -g ts-node`
11-
128
Example command sequence to get ES and kibana running with sample data after installing ts-node:
139

1410
`yarn es snapshot` -> starts ES

x-pack/plugins/security_solution/scripts/endpoint/cli_tsconfig.json

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License;
4+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
require('../../../../../src/setup_node_env');
8+
require('./resolver_generator_script');

0 commit comments

Comments
 (0)