Skip to content

Commit

Permalink
fix(tools-nx-forecast): Resolved module loading issues during executors
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Sep 29, 2023
1 parent 32a9806 commit d83806d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'java', 'javascript' ]
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
Expand Down
2 changes: 1 addition & 1 deletion libs/contact/typescript/server/attachment/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
},
"generate": {
"executor": "@stormstack/tools-nx-forecast:generate",
"executor": "@stormstack/tools-nx-forecast:project-generate",
"options": {
"outputPath": "libs/contact/typescript/server/attachment/src/__generated__",
"schema": "schema.4cast",
Expand Down
11 changes: 4 additions & 7 deletions tools/nx/forecast/executors.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"$schema": "http://json-schema.org/schema",
"name": "@stormstack/tools-nx-forecast",
"version": "0.0.1",
"executors": {
"generate": {
"implementation": "../../../dist/tools/nx/forecast/src/executors/generate/impl",
"schema": "../../../dist/tools/nx/forecast/src/executors/generate/schema.json",
"description": "Generate code based on a provided Forecast model."
"project-generate": {
"implementation": "../../../dist/tools/nx/forecast/src/executors/project-generate/impl",
"schema": "../../../dist/tools/nx/forecast/src/executors/project-generate/schema.json",
"description": "Generate code for a specific project based on a provided Forecast model schema"
}
}
}
3 changes: 0 additions & 3 deletions tools/nx/forecast/generators.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"$schema": "http://json-schema.org/schema",
"name": "@stormstack/tools-nx-forecast",
"version": "0.0.1",
"generators": {
"generate": {
"implementation": "../../../dist/tools/nx/forecast/src/generators/generate/impl",
Expand Down
4 changes: 2 additions & 2 deletions tools/nx/forecast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"@nx/devkit": "16.7.0",
"fs-extra": "^11.1.1"
},
"builders": "./executors.json",
"schematics": "./generators.json"
"executors": "./executors.json",
"generators": "./generators.json"
}
2 changes: 1 addition & 1 deletion tools/nx/forecast/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"project": "tools/nx/forecast/package.json",
"main": "tools/nx/forecast/index.ts",
"additionalEntryPoints": [
"tools/nx/forecast/src/executors/generate/impl.ts",
"tools/nx/forecast/src/executors/project-generate/impl.ts",
"tools/nx/forecast/src/generators/generate/impl.ts"
],
"deleteOutputPath": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "http://json-schema.org/schema",
"cli": "nx",
"id": "generate",
"title": "StormStack - Forecast Generate (Executor)",
"description": "⚡ Generate code based on a provided Forecast model schema",
"id": "project-generate",
"title": "StormStack - Forecast Project Generate (Executor)",
"description": "⚡ Generate code for a specific project based on a provided Forecast model schema",
"type": "object",
"properties": {
"schema": {
Expand Down

0 comments on commit d83806d

Please sign in to comment.