diff --git a/sandbox/.gitignore b/sandbox/.gitignore index a0d218e..c27e9ba 100644 --- a/sandbox/.gitignore +++ b/sandbox/.gitignore @@ -1,3 +1,3 @@ node_modules -dist +build .env \ No newline at end of file diff --git a/sandbox/.prettierignore b/sandbox/.prettierignore new file mode 100644 index 0000000..48912d2 --- /dev/null +++ b/sandbox/.prettierignore @@ -0,0 +1,2 @@ +build +node_modules \ No newline at end of file diff --git a/sandbox/.prettierrc b/sandbox/.prettierrc index c125846..86d4b8b 100644 --- a/sandbox/.prettierrc +++ b/sandbox/.prettierrc @@ -3,6 +3,5 @@ "useTabs": true, "singleQuote": true, "trailingComma": "none", - "printWidth": 100, - "pluginSearchDirs": ["."] + "printWidth": 100 } diff --git a/sandbox/Dockerfile b/sandbox/Dockerfile index 4974209..953e6d3 100644 --- a/sandbox/Dockerfile +++ b/sandbox/Dockerfile @@ -36,4 +36,4 @@ COPY . . RUN npm run build -CMD ["node", "dist"] \ No newline at end of file +CMD ["node", "build"] \ No newline at end of file diff --git a/sandbox/package-lock.json b/sandbox/package-lock.json index 53d3775..4d35f20 100644 --- a/sandbox/package-lock.json +++ b/sandbox/package-lock.json @@ -17,6 +17,7 @@ }, "devDependencies": { "@types/fs-extra": "^11.0.1", + "prettier": "^3.0.2", "typescript": "^5.1.6" } }, @@ -119,6 +120,21 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, + "node_modules/prettier": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.2.tgz", + "integrity": "sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/simple-git": { "version": "3.19.1", "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.19.1.tgz", diff --git a/sandbox/package.json b/sandbox/package.json index ca05f52..0fe1bdf 100644 --- a/sandbox/package.json +++ b/sandbox/package.json @@ -5,12 +5,15 @@ "main": "index.js", "type": "module", "scripts": { - "build": "tsc" + "build": "tsc", + "format": "prettier --write .", + "start": "node build" }, "author": "", "license": "ISC", "devDependencies": { "@types/fs-extra": "^11.0.1", + "prettier": "^3.0.2", "typescript": "^5.1.6" }, "dependencies": { diff --git a/sandbox/tsconfig.json b/sandbox/tsconfig.json index 6694831..7e9b0cb 100644 --- a/sandbox/tsconfig.json +++ b/sandbox/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "NodeNext", "sourceMap": true, - "outDir": "./dist", + "outDir": "./build", "esModuleInterop": true, "strict": true },