File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
npm-packages/convex/src/cli/lib/components/definition Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ use value::sha256::Sha256;
19
19
20
20
const PACKAGES_DIR : & str = "../../npm-packages" ;
21
21
const NPM_DIR : & str = "../../npm-packages/convex" ;
22
- const SYSTEM_UDFS_DIR : & str = "../../npm-packages/ system-udfs/convex/_system" ;
23
- const UDF_RUNTIME_DIR : & str = "../../npm-packages/ udf-runtime/src" ;
22
+ const SYSTEM_UDFS_DIR : & str = "../system-udfs/convex/_system" ;
23
+ const UDF_RUNTIME_DIR : & str = "../udf-runtime/src" ;
24
24
const UDF_TESTS_DIR : & str = "../../npm-packages/udf-tests" ;
25
25
const COMPONENT_TESTS_DIR : & str = "../../npm-packages/component-tests/layouts" ;
26
26
const NODE_EXECUTOR_DIST_DIR : & str = "../../npm-packages/node-executor/dist" ;
@@ -170,8 +170,8 @@ fn main() -> anyhow::Result<()> {
170
170
. arg ( "run" )
171
171
. arg ( "--silent" )
172
172
. arg ( "bundle-server" )
173
- . arg ( Path :: new ( UDF_RUNTIME_DIR ) . canonicalize ( ) ? )
174
- . arg ( Path :: new ( SYSTEM_UDFS_DIR ) . canonicalize ( ) ? )
173
+ . arg ( Path :: new ( UDF_RUNTIME_DIR ) )
174
+ . arg ( Path :: new ( SYSTEM_UDFS_DIR ) )
175
175
. output ( )
176
176
. context ( "Failed on npm run bundler" ) ?;
177
177
anyhow:: ensure!(
Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ const SHARED_ESBUILD_OPTIONS = {
177
177
178
178
// place output files in memory at their source locations
179
179
write : false ,
180
- outdir : "/" ,
181
- outbase : "/" ,
180
+ outdir : path . parse ( process . cwd ( ) ) . root ,
181
+ outbase : path . parse ( process . cwd ( ) ) . root ,
182
182
183
183
minify : true ,
184
184
keepNames : true ,
Original file line number Diff line number Diff line change @@ -32,12 +32,7 @@ export function qualifiedDefinitionPath(
32
32
workingDir = "." ,
33
33
) {
34
34
const definitionPath = path . relative ( workingDir , directory . definitionPath ) ;
35
- // A ./ or ../ prefix make a path "qualified."
36
- if ( definitionPath . startsWith ( "./" ) || definitionPath . startsWith ( "../" ) ) {
37
- return definitionPath ;
38
- } else {
39
- return `./${ definitionPath } ` ;
40
- }
35
+ return `./${ definitionPath } ` ;
41
36
}
42
37
43
38
// NB: The process cwd will be used to resolve the directory specified in the constructor.
You can’t perform that action at this time.
0 commit comments