Skip to content

Commit eea8d28

Browse files
committed
fix: resources builder
1 parent df7a3af commit eea8d28

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

build/lib/sqlite.js

+13-12
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,23 @@ export default class ExternalResource extends ExternalResourceBuilder {
3434
}
3535

3636
async _build ( location ) {
37+
var res;
3738

3839
// install better-sqlite3 deps
39-
var res = childProcess.spawnSync( "npm", ["i", "--ignore-scripts"], {
40-
"cwd": this.#cwd,
41-
"shell": true,
42-
"stdio": "inherit",
43-
} );
44-
if ( res.status ) return result( 500 );
40+
// res = childProcess.spawnSync( "npm", ["i", "--ignore-scripts"], {
41+
// "cwd": this.#cwd,
42+
// "shell": true,
43+
// "stdio": "inherit",
44+
// } );
45+
// if ( res.status ) return result( 500 );
4546

4647
// update node-gyp to the latest version
47-
res = childProcess.spawnSync( "npm", ["i", "--ignore-scripts", "node-gyp@latest"], {
48-
"cwd": path.join( this.#cwd, "node_modules/prebuild" ),
49-
"shell": true,
50-
"stdio": "inherit",
51-
} );
52-
if ( res.status ) return result( 500 );
48+
// res = childProcess.spawnSync( "npm", ["i", "--ignore-scripts", "node-gyp@latest"], {
49+
// "cwd": path.join( this.#cwd, "node_modules/prebuild" ),
50+
// "shell": true,
51+
// "stdio": "inherit",
52+
// } );
53+
// if ( res.status ) return result( 500 );
5354

5455
// update sqlite sources
5556
res = await this.#updateSqlite();

0 commit comments

Comments
 (0)