File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 5
5
IosSPMPackageDefinition ,
6
6
} from "@rigor789/trapezedev-project" ;
7
7
import { IPlatformData } from "../../definitions/platform" ;
8
+ import path = require( "path" ) ;
8
9
9
10
export class SPMService implements ISPMService {
10
11
constructor (
@@ -54,6 +55,11 @@ export class SPMService implements ISPMService {
54
55
55
56
// todo: handle removing packages? Or just warn and require a clean?
56
57
for ( const pkg of spmPackages ) {
58
+ if ( "path" in pkg ) {
59
+ // resolve the path relative to the project root
60
+ this . $logger . trace ( "SPM: resolving path for package: " , pkg . path ) ;
61
+ pkg . path = path . resolve ( projectData . projectDir , pkg . path ) ;
62
+ }
57
63
this . $logger . trace ( `SPM: adding package ${ pkg . name } to project.` , pkg ) ;
58
64
await project . ios . addSPMPackage ( projectData . projectName , pkg ) ;
59
65
}
Original file line number Diff line number Diff line change 59
59
"@nativescript/schematics-executor" : " 0.0.2" ,
60
60
"@npmcli/move-file" : " ^2.0.0" ,
61
61
"@rigor789/resolve-package-path" : " 1.0.5" ,
62
- "@rigor789/trapezedev-project" : " ^ 7.1.0 " ,
62
+ "@rigor789/trapezedev-project" : " 7.1.1 " ,
63
63
"archiver" : " ^5.3.1" ,
64
64
"axios" : " 1.3.5" ,
65
65
"byline" : " 5.0.0" ,
You can’t perform that action at this time.
0 commit comments