Skip to content

Commit e3928da

Browse files
committed
fix(nx): Resolve issue with Nx plugin
1 parent 120ad4f commit e3928da

5 files changed

Lines changed: 136 additions & 12 deletions

File tree

examples/cli-app/.storm/meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"buildId": "0Dt5AvHBYxtnkl5PB-Ufep6O",
3-
"releaseId": "zriRuSM8zEESuRNpdyP2FTBC",
2+
"buildId": "ye_iRIYXnHVC-9AwRcpI3Q85",
3+
"releaseId": "HfAL6KFnQMOH2BxvH9jFDAzO",
44
"checksum": "RBNvo1WzZ4oRRq0W9-hknpT7T8If536D",
5-
"timestamp": 1746672649053
5+
"timestamp": 1746673870812
66
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"buildId": "gl7VJPX0Jy3CePqrpRgTFqgN",
3-
"releaseId": "lETD1VrF2GGuPNqMGBfECy4I",
2+
"buildId": "8ilT6jt-inlXVRT3pls7HxwM",
3+
"releaseId": "nEiUwVRChPWVJ-1cZMONmav4",
44
"checksum": "RBNvo1WzZ4oRRq0W9-hknpT7T8If536D",
5-
"timestamp": 1746672649098
5+
"timestamp": 1746673870942
66
}
Lines changed: 124 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,131 @@
11
[
22
{
33
"kind": 30,
4-
"types": [],
4+
"types": [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 26, 31, 36, 38],
55
"entityOptions": {
66
"description": "An object containing the dotenv variables used by the examples-node-app application."
77
}
8-
}
8+
},
9+
{
10+
"kind": 32,
11+
"type": 2,
12+
"name": "APP_NAME",
13+
"description": "The name of the application."
14+
},
15+
{ "kind": 5 },
16+
{
17+
"kind": 32,
18+
"type": 4,
19+
"name": "APP_VERSION",
20+
"description": "The version of the application.",
21+
"default": "\"1.0.0\""
22+
},
23+
{ "kind": 5 },
24+
{
25+
"kind": 32,
26+
"type": 6,
27+
"name": "SENTRY_DSN",
28+
"description": "The DSN for Sentry"
29+
},
30+
{ "kind": 5 },
31+
{
32+
"kind": 32,
33+
"type": 8,
34+
"name": "ENVIRONMENT",
35+
"description": "The environment the application is running in. This value will be populated with the value of `MODE` if not provided.",
36+
"default": "\"production\""
37+
},
38+
{ "kind": 5 },
39+
{
40+
"kind": 32,
41+
"type": 10,
42+
"name": "RELEASE_TAG",
43+
"description": "The tag for the release. This is generally in the format of \"\\<APP_NAME\\>\\@\\<APP_VERSION\\>\"."
44+
},
45+
{ "kind": 5 },
46+
{
47+
"kind": 32,
48+
"type": 12,
49+
"name": "DEBUG",
50+
"description": "Indicates if the application is running in debug mode.",
51+
"default": "false"
52+
},
53+
{ "kind": 7 },
54+
{
55+
"kind": 32,
56+
"type": 14,
57+
"name": "STACKTRACE",
58+
"description": "Indicates if error stack traces should be captured.",
59+
"default": "false"
60+
},
61+
{ "kind": 7 },
62+
{
63+
"kind": 32,
64+
"type": 16,
65+
"name": "BUILD_ID",
66+
"description": "The unique identifier for the build."
67+
},
68+
{ "kind": 5 },
69+
{
70+
"kind": 32,
71+
"type": 18,
72+
"name": "BUILD_TIMESTAMP",
73+
"description": "The timestamp the build was ran at."
74+
},
75+
{ "kind": 6 },
76+
{
77+
"kind": 32,
78+
"type": 20,
79+
"name": "RELEASE_ID",
80+
"description": "The unique identifier for the release."
81+
},
82+
{ "kind": 5 },
83+
{
84+
"kind": 32,
85+
"type": 22,
86+
"name": "MODE",
87+
"description": "The mode in which the application is running.",
88+
"default": "\"production\""
89+
},
90+
{ "kind": 23, "types": [23, 24, 25] },
91+
{ "kind": 13, "literal": "development" },
92+
{ "kind": 13, "literal": "staging" },
93+
{ "kind": 13, "literal": "production" },
94+
{
95+
"kind": 32,
96+
"type": 27,
97+
"name": "NODE_ENV",
98+
"description": "The environment the application is running in. This variable is a duplicate of `ENVIRONMENT` to support use in external packages.",
99+
"default": "\"production\""
100+
},
101+
{ "kind": 23, "types": [28, 29, 30] },
102+
{ "kind": 13, "literal": "development" },
103+
{ "kind": 13, "literal": "staging" },
104+
{ "kind": 13, "literal": "production" },
105+
{
106+
"kind": 32,
107+
"type": 32,
108+
"name": "PLATFORM",
109+
"description": "The platform for which the application was built.",
110+
"default": "\"node\""
111+
},
112+
{ "kind": 23, "types": [33, 34, 35] },
113+
{ "kind": 13, "literal": "node" },
114+
{ "kind": 13, "literal": "browser" },
115+
{ "kind": 13, "literal": "worker" },
116+
{
117+
"kind": 32,
118+
"type": 37,
119+
"name": "ERROR_URL",
120+
"description": "The URL to send error data to. This value is used by the Storm Stack error tracking system."
121+
},
122+
{ "kind": 5 },
123+
{
124+
"kind": 32,
125+
"type": 39,
126+
"name": "INCLUDE_ERROR_DATA",
127+
"description": "Indicates if error data should be included.",
128+
"default": "false"
129+
},
130+
{ "kind": 7 }
9131
]

examples/node-app/.storm/meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"buildId": "yLznLoCXDk_AeDhTsuJDgdj7",
3-
"releaseId": "zReV_KJ4FN1C01LszVsGJfAl",
2+
"buildId": "Or63oz2Zgz61vBzkDkVLjclN",
3+
"releaseId": "1m1UFJisQdbgBD_Y21SKg77I",
44
"checksum": "RBNvo1WzZ4oRRq0W9-hknpT7T8If536D",
5-
"timestamp": 1746672648731
5+
"timestamp": 1746673870236
66
}

packages/nx/src/plugin/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export const createNodesV2: CreateNodesV2<StormStackNxPluginOptions> = [
9191
const targets: ProjectConfiguration["targets"] =
9292
readTargetsFromPackageJson(
9393
packageJson as PackageJsonNx,
94-
readNxJson(context.workspaceRoot)
94+
readNxJson(context.workspaceRoot),
95+
projectRoot,
96+
context.workspaceRoot
9597
);
9698

9799
let relativeRoot = projectRoot

0 commit comments

Comments
 (0)