@@ -18,7 +18,7 @@ process.env.NIM_DISABLE_AUTOUPDATE = '1';
18
18
* @param {* } run - function provided under utils by Netlify to build event functions.
19
19
*/
20
20
async function deployProject ( run ) {
21
- await run . command ( `npx nim project deploy . --exclude=web` ) ;
21
+ await run . command ( `nim project deploy . --exclude=web` ) ;
22
22
}
23
23
24
24
/**
@@ -31,7 +31,7 @@ async function deployActions({run, functionsDir, timeout, memory}) {
31
31
for ( const file of files ) {
32
32
const [ actionName , extension ] = file . split ( '.' ) ;
33
33
let command =
34
- `npx nim action update ${ actionName } ${ join ( functionsDir , file ) } ` +
34
+ `nim action update ${ actionName } ${ join ( functionsDir , file ) } ` +
35
35
`--timeout=${ Number ( timeout ) } --memory=${ Number ( memory ) } ` +
36
36
`--web=raw ` ;
37
37
@@ -71,10 +71,10 @@ module.exports = {
71
71
// Login if not logged in before.
72
72
if ( loggedIn ) {
73
73
console . log ( '\nUsing the following namespace.' ) ;
74
- await utils . run . command ( 'npx nim auth current' ) ;
74
+ await utils . run . command ( 'nim auth current' ) ;
75
75
} else {
76
76
await utils . run . command (
77
- `npx nim auth login ${ process . env . NIMBELLA_LOGIN_TOKEN } `
77
+ `nim auth login ${ process . env . NIMBELLA_LOGIN_TOKEN } `
78
78
) ;
79
79
80
80
// Cache the nimbella config to avoid logging in for consecutive builds.
@@ -108,9 +108,7 @@ module.exports = {
108
108
// Execute after build is done.
109
109
onPostBuild : async ( { constants, utils, inputs} ) => {
110
110
try {
111
- const { stdout : namespace } = await utils . run . command (
112
- `npx nim auth current`
113
- ) ;
111
+ const { stdout : namespace } = await utils . run . command ( `nim auth current` ) ;
114
112
115
113
if ( process . env . CONTEXT === 'production' ) {
116
114
if ( isProject ) {
0 commit comments