Fixed pretty much all the things that were triggering my OCD #28
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ScopesAndTypes",
|
"name": "ScopesAndTypes",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "BundleLoading",
|
"name": "BundleLoading",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"author": "Chomp",
|
|
||||||
"license": "MIT",
|
|
||||||
"main": "src/mod.js",
|
|
||||||
"isBundleMod": true,
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": true,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -23,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ClassExtensionOverride",
|
"name": "ClassExtensionOverride",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "13AddTrader",
|
"name": "13AddTrader",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Shirito",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Shirito",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "AfterDBLoadHook",
|
"name": "AfterDBLoadHook",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "HttpListenerExample",
|
"name": "HttpListenerExample",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Alex",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "clodan",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ImporterUtil",
|
"name": "ImporterUtil",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,20 @@
|
|||||||
{
|
{
|
||||||
"name": "AsyncWithDependency1",
|
"name": "AsyncWithDependency1",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
"modDependencies": {
|
"main": "src/mod.js",
|
||||||
"17AsyncImporterWithDependency2": "~1"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
"buildinfo": "node ./build.mjs --verbose"
|
"buildinfo": "node ./build.mjs --verbose"
|
||||||
},
|
},
|
||||||
|
"modDependencies": {
|
||||||
|
"17AsyncImporterWithDependency2": "~1"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "20.11",
|
"@types/node": "20.11",
|
||||||
"@typescript-eslint/eslint-plugin": "7.2",
|
"@typescript-eslint/eslint-plugin": "7.2",
|
||||||
@ -25,9 +23,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "AsyncWithDependency2",
|
"name": "AsyncWithDependency2",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "CustomItemService",
|
"name": "CustomItemService",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Choccy",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Choccy",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,20 @@
|
|||||||
{
|
{
|
||||||
"name": "UseExternalLibraries",
|
"name": "UseExternalLibraries",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "TheSparta",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
"buildinfo": "node ./build.mjs --verbose"
|
"buildinfo": "node ./build.mjs --verbose"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ora-classic": "5.4.2"
|
"ora-classic": "5.4.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "20.11",
|
"@types/node": "20.11",
|
||||||
"@typescript-eslint/eslint-plugin": "7.2",
|
"@typescript-eslint/eslint-plugin": "7.2",
|
||||||
@ -25,9 +23,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "TheSparta",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "LogToConsole",
|
"name": "LogToConsole",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
"isBundleMod": false,
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -23,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "CustomChatBot",
|
"name": "CustomChatBot",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "clodan",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "clodan",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "CustomCommandoCommand",
|
"name": "CustomCommandoCommand",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "clodan",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "clodan",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "CustomAkiCommand",
|
"name": "CustomAkiCommand",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "clodan",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "clodan",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "CustomAbstractChatBot",
|
"name": "CustomAbstractChatBot",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "clodan",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "clodan",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "WebSocket",
|
"name": "WebSocket",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "clodan",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "clodan",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "EditDatabase",
|
"name": "EditDatabase",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
"isBundleMod": false,
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -23,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "GetSptConfigFile",
|
"name": "GetSptConfigFile",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
"isBundleMod": false,
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -23,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "UseACustomJson5OrJsonCConfigFile",
|
"name": "UseACustomJson5OrJsonCConfigFile",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "src/mod.js",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.9",
|
"akiVersion": "~3.9",
|
||||||
"loadBefore": [],
|
"loadBefore": [],
|
||||||
"loadAfter": [],
|
"loadAfter": [],
|
||||||
"incompatibilities": [],
|
"incompatibilities": [],
|
||||||
"contributors": [],
|
"isBundleMod": false,
|
||||||
|
"main": "src/mod.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": [ "./types/*" ],
|
"@spt-aki/*": ["./types/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exclude": [ "node_modules", "dist", "tmp" ],
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user