@things-factory/work-shift 6.2.70 → 6.2.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@things-factory/work-shift",
3
- "version": "6.2.70",
3
+ "version": "6.2.77",
4
4
  "main": "dist-server/index.js",
5
- "browser": "client/index.js",
5
+ "browser": "dist-client/index.js",
6
6
  "things-factory": true,
7
7
  "author": "heartyoh <heartyoh@hatiolab.com>",
8
8
  "description": "Module to handle work shift",
@@ -17,17 +17,20 @@
17
17
  "directory": "packages/work-shift"
18
18
  },
19
19
  "scripts": {
20
- "build": "tsc --p tsconfig.json",
21
- "build:server": "npm run clean:server && tsc",
22
- "clean:server": "rm -rf dist-server",
23
- "clean": "npm run clean:server",
20
+ "build": "npm run build:server && npm run build:client",
21
+ "copy:files": "copyfiles -e \"./client/**/*.{ts,js,json}\" -u 1 \"./client/**/*\" dist-client",
22
+ "build:client": "npm run copy:files && npx tsc --p ./client/tsconfig.json",
23
+ "build:server": "npx tsc --p ./server/tsconfig.json",
24
+ "clean:client": "npx rimraf dist-client",
25
+ "clean:server": "npx rimraf dist-server",
26
+ "clean": "npm run clean:server && npm run clean:client",
24
27
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
28
  },
26
29
  "dependencies": {
27
- "@things-factory/auth-base": "^6.2.70",
30
+ "@things-factory/auth-base": "^6.2.77",
28
31
  "@things-factory/env": "^6.2.33",
29
- "@things-factory/shell": "^6.2.70",
32
+ "@things-factory/shell": "^6.2.77",
30
33
  "moment-timezone": "^0.5.40"
31
34
  },
32
- "gitHead": "99c274f281e62be08a952c10cb3b8fdecba24a65"
35
+ "gitHead": "91090127331d8e4cdbbfeb2f82c8dfe8dc65bfee"
33
36
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../../tsconfig-base.json",
3
+ "compilerOptions": {
4
+ "strict": false,
5
+ "module": "commonjs",
6
+ "outDir": "../dist-server",
7
+ "baseUrl": "./"
8
+ },
9
+ "include": ["./**/*"]
10
+ }
@@ -1,5 +1,5 @@
1
- import bootstrap from './client/bootstrap'
2
- import route from './client/route'
1
+ import bootstrap from './dist-client/bootstrap'
2
+ import route from './dist-client/route'
3
3
 
4
4
  export default {
5
5
  route,
@@ -1,3 +0,0 @@
1
- import { store } from '@things-factory/shell'
2
-
3
- export default function bootstrap() {}
package/client/index.js DELETED
@@ -1 +0,0 @@
1
- export * from './actions/main'
package/tsconfig.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "../tsconfig-base.json",
3
- "compilerOptions": {
4
- "outDir": "./dist-server",
5
- "baseUrl": "./"
6
- },
7
- "include": ["./server/**/*"],
8
- "exclude": ["**/*.spec.ts"]
9
- }
File without changes