Commit 1cc9af7 1 parent 4c0b34e commit 1cc9af7 Copy full SHA for 1cc9af7
File tree 5 files changed +8
-15
lines changed
5 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 11
11
/coverage
12
12
/package-lock.json
13
13
/yarn.lock
14
- .npmrc
15
- /my-app
14
+ .npmrc
Original file line number Diff line number Diff line change 1
- ## [ 3.0.3] ( https://github.com/aurelia/cli/compare/v3.0.2...v3.0.3 ) (2024-04-17)
2
-
3
-
4
-
5
1
## [ 3.0.2] ( https://github.com/aurelia/cli/compare/v3.0.1...v3.0.2 ) (2023-10-07)
6
2
7
3
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ The `au new` command now simplify wraps `npx makes aurelia/v1`. Users can direct
27
27
1 . Clone the aurelia-cli: ` git clone https://github.com/aurelia/cli.git `
28
28
2 . Go into the cli directory: ` cd cli `
29
29
3 . Run ` npm install `
30
- 6 . Link the cli with: ` npm link `
31
- 7 . Create a new project with ` au new ` or use an existing project. The linked CLI will be used to create the project.
32
- 8 . In the project directory, run ` npm link aurelia-cli ` . The linked CLI will then be used for ` au ` commands such as ` au run `
30
+ 4 . Link the cli with: ` npm link `
31
+ 5 . Create a new project with ` au new ` or use an existing project. The linked CLI will be used to create the project.
32
+ 6 . In the project directory, run ` npm link aurelia-cli ` . The linked CLI will then be used for ` au ` commands such as ` au run `
33
33
34
34
## Running the Tests
35
35
Original file line number Diff line number Diff line change 1
1
const { spawn} = require ( 'child_process' ) ;
2
2
const npmWhich = require ( 'npm-which' ) ;
3
+ const isWindows = process . platform === "win32" ;
3
4
4
5
exports . BasePackageManager = class {
5
6
constructor ( executableName ) {
@@ -11,19 +12,16 @@ exports.BasePackageManager = class {
11
12
}
12
13
13
14
run ( command , args = [ ] , workingDirectory = process . cwd ( ) ) {
14
- const isWindows = process . platform === "win32" ;
15
15
let executable = this . getExecutablePath ( workingDirectory ) ;
16
- let options = { stdio : "inherit" , cwd : workingDirectory } ;
17
16
if ( isWindows ) {
18
- executable = `"${ executable } "`
19
- options = { ...options , shell : true }
17
+ executable = JSON . stringify ( executable ) ; // Add quotes around path
20
18
}
21
19
22
20
return new Promise ( ( resolve , reject ) => {
23
21
this . proc = spawn (
24
22
executable ,
25
23
[ command , ...args ] ,
26
- options
24
+ { stdio : "inherit" , cwd : workingDirectory , shell : isWindows }
27
25
)
28
26
. on ( 'close' , resolve )
29
27
. on ( 'error' , reject ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " aurelia-cli" ,
3
- "version" : " 3.0.3 " ,
3
+ "version" : " 3.0.2 " ,
4
4
"description" : " The command line tooling for Aurelia." ,
5
5
"keywords" : [
6
6
" aurelia" ,
You can’t perform that action at this time.
0 commit comments