Restructuring the folders
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-05-24 10:24:39 -04:00
parent 1fa308b2a9
commit b969adbc2e
27 changed files with 444 additions and 439 deletions

3
.gitignore vendored
View File

@@ -130,3 +130,6 @@ dist
.yarn/install-state.gz .yarn/install-state.gz
.pnp.* .pnp.*
# Project
lib/

8
.npmignore Normal file
View File

@@ -0,0 +1,8 @@
src
tsconfig.json
tslint.json
.prettierrc
.yarnrc.yml
.drone.yml
babel.config.*
jest.config.*

View File

@@ -32,4 +32,4 @@ COPY package*.json yarn.lock ./
RUN yarn set version stable && yarn install && yarn cache clean RUN yarn set version stable && yarn install && yarn cache clean
COPY --from=build /home/node/app/dist . COPY --from=build /home/node/app/dist .
EXPOSE $PORT EXPOSE $PORT
CMD ["node","server/index.js"] CMD ["node","index.js"]

View File

@@ -1,17 +1,18 @@
{ {
"name": "@mifi/auth-service", "name": "@mifi/auth-service",
"version": "1.0.2", "version": "1.0.3",
"author": "mifi (Mike Fitzpatrick)", "author": "mifi (Mike Fitzpatrick)",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"build:production": "tsc -p .", "build:production": "tsc -p ",
"format": "prettier:fix && lint:fix", "format": "prettier:fix && lint:fix",
"lint": "eslint --ext .ts,.tsx lib/", "lint": "eslint --ext .ts,.tsx src/",
"lint:fix": "eslint --fix --ext .ts,.tsx lib/", "lint:fix": "eslint --fix --ext .ts,.tsx lib/",
"prettier": "prettier --check 'lib/**/*.ts'", "prettier": "prettier --check 'src/**/*.ts'",
"prettier:fix": "prettier --write 'lib/**/*.ts'", "prettier:fix": "prettier --write 'src/**/*.ts'",
"serve": "node dist/lib/index.js", "serve-dev": "node-ts src/index.ts",
"serve": "node lib/index.js",
"start": "nodemon", "start": "nodemon",
"test": "jest --passWithNoTests" "test": "jest --passWithNoTests"
}, },

View File

@@ -5,8 +5,8 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"noImplicitAny": true, "noImplicitAny": true,
"outDir": "./dist/", "outDir": "./lib/",
"rootDirs": ["lib"], "rootDirs": ["src"],
"sourceMap": true "sourceMap": true
} }
} }

853
yarn.lock

File diff suppressed because it is too large Load Diff