環境設定ファイル

This commit is contained in:
Rikuoh Tsujitani 2025-02-17 22:49:54 +09:00
parent d0cb2690bb
commit 75fed3ecf4
Signed by: riq0h
GPG key ID: 010F09DEA298C717
5 changed files with 2026 additions and 19 deletions

5
.npmignore Normal file
View file

@ -0,0 +1,5 @@
src/
node_modules/
.git/
.gitignore
tsconfig.json

21
eslint.config.mjs Normal file
View file

@ -0,0 +1,21 @@
import pluginJs from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import globals from "globals";
import typescriptParser from "@typescript-eslint/parser";
export default [
{
files: ["**/*.js", "**/*.ts"],
languageOptions: {
parser: typescriptParser,
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
},
},
ignores: ["dist/**"],
...pluginJs.configs.recommended,
...eslintConfigPrettier,
},
];

1954
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,25 +1,59 @@
{ {
"name": "multitool", "type": "commonjs",
"version": "1.0.0", "name": "@riq0h/mtt",
"description": "", "version": "0.0.9",
"main": "dist/index.js", "description": "mtt - multitool for file operation",
"types": "dist/index.d.ts", "main": "dist/lib.js",
"types": "dist/lib.d.ts",
"bin": { "bin": {
"mt": "./dist/index.js" "mtt": "./dist/index.js"
},
"exports": {
".": {
"types": "./dist/lib.d.ts",
"require": "./dist/lib.js",
"default": "./dist/lib.js"
}
},
"files": [
"dist"
],
"publishConfig": {
"access": "public"
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"start": "node ./dist/index.js" "start": "node ./dist/index.js",
"fix": "prettier --write . && eslint --fix .",
"lint": "prettier --check . && eslint src/**/*.ts ."
}, },
"keywords": [], "keywords": [
"author": "", "cli",
"rename",
"compress",
"image",
"resize"
],
"author": "Rikuoh Tsujitani",
"license": "MIT", "license": "MIT",
"type": "commonjs", "repository": {
"type": "git",
"url": "https://github.com/riq0h/mtt"
},
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.20.0",
"@types/node": "^22.13.4", "@types/node": "^22.13.4",
"@types/sharp": "^0.31.1",
"@typescript-eslint/parser": "^8.24.0",
"eslint-config-prettier": "^10.0.1",
"typescript": "^5.7.3" "typescript": "^5.7.3"
}, },
"dependencies": { "dependencies": {
"commander": "^13.1.0" "commander": "^13.1.0",
"eslint": "^9.20.1",
"globals": "^15.15.0",
"prettier": "^3.5.1",
"sharp": "^0.33.5",
"zip-lib": "^1.0.5"
} }
} }

View file

@ -3,12 +3,17 @@
"target": "es2016", "target": "es2016",
"module": "commonjs", "module": "commonjs",
"declaration": true, "declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist", "outDir": "./dist",
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"strict": true, "strict": true,
"skipLibCheck": true, "skipLibCheck": true,
"rootDir": "./src" "rootDir": "./src",
"resolveJsonModule": true,
"moduleResolution": "node"
}, },
"include": ["src"] "include": ["src"],
"exclude": ["node_modules", "dist"]
} }