Restructuring the folders
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -130,3 +130,6 @@ dist
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
# Project
|
||||
lib/
|
||||
|
||||
|
||||
8
.npmignore
Normal file
8
.npmignore
Normal file
@@ -0,0 +1,8 @@
|
||||
src
|
||||
tsconfig.json
|
||||
tslint.json
|
||||
.prettierrc
|
||||
.yarnrc.yml
|
||||
.drone.yml
|
||||
babel.config.*
|
||||
jest.config.*
|
||||
@@ -32,4 +32,4 @@ COPY package*.json yarn.lock ./
|
||||
RUN yarn set version stable && yarn install && yarn cache clean
|
||||
COPY --from=build /home/node/app/dist .
|
||||
EXPOSE $PORT
|
||||
CMD ["node","server/index.js"]
|
||||
CMD ["node","index.js"]
|
||||
|
||||
13
package.json
13
package.json
@@ -1,17 +1,18 @@
|
||||
{
|
||||
"name": "@mifi/auth-service",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"author": "mifi (Mike Fitzpatrick)",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"build:production": "tsc -p .",
|
||||
"build:production": "tsc -p ",
|
||||
"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/",
|
||||
"prettier": "prettier --check 'lib/**/*.ts'",
|
||||
"prettier:fix": "prettier --write 'lib/**/*.ts'",
|
||||
"serve": "node dist/lib/index.js",
|
||||
"prettier": "prettier --check 'src/**/*.ts'",
|
||||
"prettier:fix": "prettier --write 'src/**/*.ts'",
|
||||
"serve-dev": "node-ts src/index.ts",
|
||||
"serve": "node lib/index.js",
|
||||
"start": "nodemon",
|
||||
"test": "jest --passWithNoTests"
|
||||
},
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"noImplicitAny": true,
|
||||
"outDir": "./dist/",
|
||||
"rootDirs": ["lib"],
|
||||
"outDir": "./lib/",
|
||||
"rootDirs": ["src"],
|
||||
"sourceMap": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user