From d05bca7b2c2840f234d3179354119a6dfc8deab8 Mon Sep 17 00:00:00 2001 From: Stephen Carter Date: Fri, 24 Jan 2025 11:14:55 -0500 Subject: [PATCH 1/2] FIX (build) @W-17615470@ Fix errors with latest node in release-4.9.0 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f746ca780..7a1c97e9b 100644 --- a/package.json +++ b/package.json @@ -143,13 +143,13 @@ "prepack": "rm -rf lib && tsc -b && oclif manifest && oclif readme && oclif lock && npm shrinkwrap", "postpack": "rm -f oclif.manifest.json oclif.lock npm-shrinkwrap.json", "lint-typescript": "eslint ./src --ext .ts --max-warnings 0", - "test": "./gradlew test jacocoTestCoverageVerification && nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"", - "test-quiet": "cross-env SFGE_LOGGING=false ./gradlew test jacocoTestCoverageVerification && nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"", + "test": "./gradlew test jacocoTestCoverageVerification && NODE_OPTIONS='--no-experimental-strip-types' nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"", + "test-quiet": "cross-env SFGE_LOGGING=false ./gradlew test jacocoTestCoverageVerification && NODE_OPTIONS='--no-experimental-strip-types' nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"", "test-cli-messaging": "./gradlew cli-messaging:test cli-messaging:jacocoTestCoverageVerification", "test-pmd-cataloger": "./gradlew pmd-cataloger:test pmd-cataloger:jacocoTestCoverageVerification", "test-sfge": "./gradlew sfge:test sfge:jacocoTestCoverageVerification", "test-sfge-quiet": "cross-env SFGE_LOGGING=false ./gradlew sfge:test sfge:jacocoTestCoverageVerification", - "test-typescript": "tsc -b && nyc mocha --timeout 60000 \"./test/**/*.test.ts\"", + "test-typescript": "tsc -b && NODE_OPTIONS='--no-experimental-strip-types' nyc mocha --timeout 60000 \"./test/**/*.test.ts\"", "version": "oclif readme && git add README.md" } } From ec5787adcdb27158c8865f91a752772ce84aae24 Mon Sep 17 00:00:00 2001 From: Stephen Carter Date: Fri, 24 Jan 2025 11:37:45 -0500 Subject: [PATCH 2/2] Use cross-env --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7a1c97e9b..707dbc8cf 100644 --- a/package.json +++ b/package.json @@ -143,13 +143,13 @@ "prepack": "rm -rf lib && tsc -b && oclif manifest && oclif readme && oclif lock && npm shrinkwrap", "postpack": "rm -f oclif.manifest.json oclif.lock npm-shrinkwrap.json", "lint-typescript": "eslint ./src --ext .ts --max-warnings 0", - "test": "./gradlew test jacocoTestCoverageVerification && NODE_OPTIONS='--no-experimental-strip-types' nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"", - "test-quiet": "cross-env SFGE_LOGGING=false ./gradlew test jacocoTestCoverageVerification && NODE_OPTIONS='--no-experimental-strip-types' nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"", + "test": "./gradlew test jacocoTestCoverageVerification && cross-env NODE_OPTIONS=--no-experimental-strip-types nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"", + "test-quiet": "cross-env SFGE_LOGGING=false ./gradlew test jacocoTestCoverageVerification && cross-env NODE_OPTIONS=--no-experimental-strip-types nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"", "test-cli-messaging": "./gradlew cli-messaging:test cli-messaging:jacocoTestCoverageVerification", "test-pmd-cataloger": "./gradlew pmd-cataloger:test pmd-cataloger:jacocoTestCoverageVerification", "test-sfge": "./gradlew sfge:test sfge:jacocoTestCoverageVerification", "test-sfge-quiet": "cross-env SFGE_LOGGING=false ./gradlew sfge:test sfge:jacocoTestCoverageVerification", - "test-typescript": "tsc -b && NODE_OPTIONS='--no-experimental-strip-types' nyc mocha --timeout 60000 \"./test/**/*.test.ts\"", + "test-typescript": "tsc -b && cross-env NODE_OPTIONS=--no-experimental-strip-types nyc mocha --timeout 60000 \"./test/**/*.test.ts\"", "version": "oclif readme && git add README.md" } }