From a321930db2ab54eebe4c4fb3a48a40cb030d5bce Mon Sep 17 00:00:00 2001 From: Damian Reeves <957246+DamianReeves@users.noreply.github.com> Date: Wed, 21 Aug 2024 12:48:00 -0500 Subject: [PATCH] Disable the test-data-generation portion of the CLI since the feature is broken (#1173) * Disable the generate-test-data command as it appears broken * Update the node-elm-compiler dependency --- cli2/morphir.ts | 39 ++++++++++++++++++++++++--------------- package-lock.json | 15 ++++++++------- package.json | 2 +- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/cli2/morphir.ts b/cli2/morphir.ts index 7c610ebf2..5fda2d7ab 100644 --- a/cli2/morphir.ts +++ b/cli2/morphir.ts @@ -1,22 +1,31 @@ #!/usr/bin/env node // NPM imports -import path from 'path' -import {Command} from 'commander' +import path from "path"; +import { Command } from "commander"; // Read the package.json of this package -const packageJson = require(path.join(__dirname, '../../package.json')) +const packageJson = require(path.join(__dirname, "../../package.json")); // Set up Commander -const program = new Command() +const program = new Command(); program - .version(packageJson.version, '-v, --version') - .command('make', 'Translate Elm sources to Morphir IR') - .command('scala-gen', 'Generate scala code from Morphir IR') - .command('json-schema-gen', 'Generate Json Schema from the Morphir IR') - .command('snowpark-gen','Generate Scala with Snowpark code from Morphir IR') - .command('stats', 'Collect morphir features used in a model into a document') - .command('dockerize', 'Creates a docker image of a Morphir IR and Morphir Develop') - .command('test-coverage', 'Generates report on number of branches in a Morphir value and TestCases covered') - .command('generate-test-data', 'Creates a docker image of a Morphir IR and Morphir Develop') - .command('init', 'Launches an interactive session to initialize a new morphir project.') - .parse(process.argv) \ No newline at end of file + .version(packageJson.version, "-v, --version") + .command("make", "Translate Elm sources to Morphir IR") + .command("scala-gen", "Generate scala code from Morphir IR") + .command("json-schema-gen", "Generate Json Schema from the Morphir IR") + .command("snowpark-gen", "Generate Scala with Snowpark code from Morphir IR") + .command("stats", "Collect morphir features used in a model into a document") + .command( + "dockerize", + "Creates a docker image of a Morphir IR and Morphir Develop" + ) + .command( + "test-coverage", + "Generates report on number of branches in a Morphir value and TestCases covered" + ) + //.command('generate-test-data', 'Creates a docker image of a Morphir IR and Morphir Develop') + .command( + "init", + "Launches an interactive session to initialize a new morphir project." + ) + .parse(process.argv); diff --git a/package-lock.json b/package-lock.json index 98d0d31d1..d373eb311 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,7 +58,7 @@ "jest": "^27.5.1", "json-schema": "^0.4.0", "mocha": "^9.1.3", - "node-elm-compiler": "^5.0.5", + "node-elm-compiler": "^5.0.6", "shelljs": "^0.8.5", "tmp": "^0.2.1", "ts-jest": "^27.1.3", @@ -9301,10 +9301,11 @@ } }, "node_modules/node-elm-compiler": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/node-elm-compiler/-/node-elm-compiler-5.0.5.tgz", - "integrity": "sha512-vapB+VkmKMY1NRy7jjpGjzwWbKmtiRfzbgVoV/eROz5Kx30QvY0Nd5Ua7iST+9utrn1aG8cVToXC6UWdEO5BKQ==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/node-elm-compiler/-/node-elm-compiler-5.0.6.tgz", + "integrity": "sha512-DWTRQR8b54rvschcZRREdsz7K84lnS8A6YJu8du3QLQ8f204SJbyTaA6NzYYbfUG97OTRKRv/0KZl82cTfpLhA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "cross-spawn": "6.0.5", "find-elm-dependencies": "^2.0.4", @@ -20364,9 +20365,9 @@ "dev": true }, "node-elm-compiler": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/node-elm-compiler/-/node-elm-compiler-5.0.5.tgz", - "integrity": "sha512-vapB+VkmKMY1NRy7jjpGjzwWbKmtiRfzbgVoV/eROz5Kx30QvY0Nd5Ua7iST+9utrn1aG8cVToXC6UWdEO5BKQ==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/node-elm-compiler/-/node-elm-compiler-5.0.6.tgz", + "integrity": "sha512-DWTRQR8b54rvschcZRREdsz7K84lnS8A6YJu8du3QLQ8f204SJbyTaA6NzYYbfUG97OTRKRv/0KZl82cTfpLhA==", "dev": true, "requires": { "cross-spawn": "6.0.5", diff --git a/package.json b/package.json index 2237a7070..75fd9d2bc 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "jest": "^27.5.1", "json-schema": "^0.4.0", "mocha": "^9.1.3", - "node-elm-compiler": "^5.0.5", + "node-elm-compiler": "^5.0.6", "shelljs": "^0.8.5", "tmp": "^0.2.1", "ts-jest": "^27.1.3",