Remove unecessary mapping

master
Kuba Orlik 3 years ago
parent c64a950746
commit 942c9b443d

@ -5,12 +5,7 @@ const glob = require("tiny-glob");
const watch = process.argv.at(-1) === "--watch"; const watch = process.argv.at(-1) === "--watch";
(async () => { (async () => {
let entryPoints = Object.fromEntries( const entryPoints = await glob("./src/back/**/*.ts");
(await glob("./src/back/**/*.ts")).map((e) => [
e.replace(/\.ts$/, ""),
e,
])
);
build({ build({
entryPoints, entryPoints,
sourcemap: true, sourcemap: true,

@ -2,7 +2,7 @@
"name": "sealious-playground", "name": "sealious-playground",
"version": "1.0.1", "version": "1.0.1",
"description": "", "description": "",
"main": "./dist/src/back/index.js", "main": "./dist/index.js",
"scripts": { "scripts": {
"start": "docker-compose up -d db && node .", "start": "docker-compose up -d db && node .",
"test-cmd": "node test.js", "test-cmd": "node test.js",
@ -10,7 +10,7 @@
"typecheck:back": "tsc --noEmit -p src/back", "typecheck:back": "tsc --noEmit -p src/back",
"typecheck:front": "tsc --noEmit -p src/front", "typecheck:front": "tsc --noEmit -p src/front",
"build": "node ./esbuild.js", "build": "node ./esbuild.js",
"watch": "multiple-scripts-tmux \"npm run typecheck:back --watch\" \"SEALIOUS_PORT=$SEALIOUS_PORT SEALIOUS_BASE_URL=$SEALIOUS_BASE_URL nodemon --enable-source-maps .\" \"npm run build -- --watch\" \"npm run typecheck:front --watch\" ", "watch": "multiple-scripts-tmux \"npm run typecheck:back -- --watch\" \"SEALIOUS_PORT=$SEALIOUS_PORT SEALIOUS_BASE_URL=$SEALIOUS_BASE_URL nodemon --enable-source-maps .\" \"npm run build -- --watch\" \"npm run typecheck:front -- --watch\" ",
"test-reports": "npm run build && rm -fr .xunit coverage && docker-compose up -d db mailcatcher && npm run test -- --cover --test-report", "test-reports": "npm run build && rm -fr .xunit coverage && docker-compose up -d db mailcatcher && npm run test -- --cover --test-report",
"cover-html": "npm run test-reports -- --cover-html && xdg-open coverage/lcov-report/index.html" "cover-html": "npm run test-reports -- --cover-html && xdg-open coverage/lcov-report/index.html"
}, },

Loading…
Cancel
Save