diff --git a/TypeScript/10ScopesAndTypes/packageBuild.ts b/TypeScript/10ScopesAndTypes/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/10ScopesAndTypes/packageBuild.ts +++ b/TypeScript/10ScopesAndTypes/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/11BundleLoadingSample/packageBuild.ts b/TypeScript/11BundleLoadingSample/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/11BundleLoadingSample/packageBuild.ts +++ b/TypeScript/11BundleLoadingSample/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/12ClassExtensionOverride/packageBuild.ts b/TypeScript/12ClassExtensionOverride/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/12ClassExtensionOverride/packageBuild.ts +++ b/TypeScript/12ClassExtensionOverride/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/13AddTrader/packageBuild.ts b/TypeScript/13AddTrader/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/13AddTrader/packageBuild.ts +++ b/TypeScript/13AddTrader/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/14AfterDBLoadHook/packageBuild.ts b/TypeScript/14AfterDBLoadHook/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/14AfterDBLoadHook/packageBuild.ts +++ b/TypeScript/14AfterDBLoadHook/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/1LogToConsole/packageBuild.ts b/TypeScript/1LogToConsole/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/1LogToConsole/packageBuild.ts +++ b/TypeScript/1LogToConsole/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/2EditDatabase/packageBuild.ts b/TypeScript/2EditDatabase/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/2EditDatabase/packageBuild.ts +++ b/TypeScript/2EditDatabase/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/3GetSptConfigFile/packageBuild.ts b/TypeScript/3GetSptConfigFile/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/3GetSptConfigFile/packageBuild.ts +++ b/TypeScript/3GetSptConfigFile/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/4UseACustomConfigFile/packageBuild.ts b/TypeScript/4UseACustomConfigFile/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/4UseACustomConfigFile/packageBuild.ts +++ b/TypeScript/4UseACustomConfigFile/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/5ReplaceMethod/packageBuild.ts b/TypeScript/5ReplaceMethod/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/5ReplaceMethod/packageBuild.ts +++ b/TypeScript/5ReplaceMethod/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/6ReferenceAnotherClass/packageBuild.ts b/TypeScript/6ReferenceAnotherClass/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/6ReferenceAnotherClass/packageBuild.ts +++ b/TypeScript/6ReferenceAnotherClass/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/7OnLoadHook/packageBuild.ts b/TypeScript/7OnLoadHook/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/7OnLoadHook/packageBuild.ts +++ b/TypeScript/7OnLoadHook/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/8OnUpdateHook/packageBuild.ts b/TypeScript/8OnUpdateHook/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/8OnUpdateHook/packageBuild.ts +++ b/TypeScript/8OnUpdateHook/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file diff --git a/TypeScript/9RouterHooks/packageBuild.ts b/TypeScript/9RouterHooks/packageBuild.ts index fd0bb4f..c829979 100644 --- a/TypeScript/9RouterHooks/packageBuild.ts +++ b/TypeScript/9RouterHooks/packageBuild.ts @@ -45,7 +45,8 @@ const exclude = glob.sync(`{${ignoreList.join(",")}}`, { realpath: true, dot: tr // For some reason these basic-bitch functions won't allow us to copy a directory into itself, so we have to resort to // using a temporary directory, like an idiot. Excuse the normalize spam; some modules cross-platform, some don't... -fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => { +fs.copySync(__dirname, path.normalize(`${__dirname}/../~${modName}`), {filter:(filePath) => +{ return !exclude.includes(filePath); }}); fs.moveSync(path.normalize(`${__dirname}/../~${modName}`), path.normalize(`${__dirname}/${modName}`), { overwrite: true }); @@ -58,12 +59,14 @@ zip({ source: modName, destination: `dist/${modName}.zip`, cwd: __dirname -}).catch(function(err) { +}).catch(function(err) +{ console.error("A bestzip error has occurred: ", err.stack); -}).then(function() { +}).then(function() +{ console.log(`Compressed mod package to: /dist/${modName}.zip`); // Now that we're done with the compression we can delete the temporary build directory. fs.rmSync(`${__dirname}/${modName}`, { force: true, recursive: true }); - console.log("Build successful!"); -}); + console.log("Build successful! your zip file has been created and is ready to be uploaded to hub.sp-tarkov.com/files/"); +}); \ No newline at end of file