First commit
This commit is contained in:
22
framework/npmScripts/removeNodeModules.js
Normal file
22
framework/npmScripts/removeNodeModules.js
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
|
||||
Copyright (c) 2020, 2023, The Unified Company.
|
||||
|
||||
This code is part of Unify.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the ESA Software Community License - Strong Copyleft,
|
||||
|
||||
https://unifyjs.org
|
||||
|
||||
*/
|
||||
|
||||
import fs from "fs-extra"
|
||||
|
||||
if( fs.existsSync( "./framework/node_modules/better-sqlite3/node_modules/" ) ) {
|
||||
|
||||
fs.rmSync("./framework/node_modules/better-sqlite3/node_modules/", { recursive: true });
|
||||
|
||||
}
|
||||
|
||||
fs.mkdirSync("./framework/node_modules/better-sqlite3/node_modules/");
|
||||
Reference in New Issue
Block a user