File tree 4 files changed +28
-31
lines changed 4 files changed +28
-31
lines changed Original file line number Diff line number Diff line change 115
115
.yarn /install-state.gz
116
116
.pnp. *
117
117
118
- build
119
- types
118
+ lib
120
119
.vscode
Original file line number Diff line number Diff line change 2
2
"name" : " @admin-bro/sequelize" ,
3
3
"version" : " 1.3.0-beta.1" ,
4
4
"description" : " Sequelize adapter for AdminBro" ,
5
- "main" : " build /index.js" ,
6
- "types" : " index.d.ts" ,
5
+ "main" : " lib /index.js" ,
6
+ "types" : " lib/ index.d.ts" ,
7
7
"scripts" : {
8
8
"build" : " tsc" ,
9
9
"dev" : " tsc --watch" ,
Original file line number Diff line number Diff line change 78
78
* @type {typeof BaseDatabase }
79
79
* @static
80
80
*/
81
- import type { BaseDatabase , BaseResource } from 'admin-bro' ;
82
- import Database from './src/database' ;
81
+ import Database from './database' ;
83
82
84
83
/**
85
84
* Implementation of {@link BaseResource} for Sequelize Adapter
@@ -88,10 +87,8 @@ import Database from './src/database';
88
87
* @type {typeof BaseResource }
89
88
* @static
90
89
*/
91
- import Resource from './src/ resource' ;
90
+ import Resource from './resource' ;
92
91
93
92
module . exports = { Database, Resource } ;
94
93
95
- const SequelizeAdapter = { Database, Resource } ;
96
-
97
- export default SequelizeAdapter ;
94
+ export default { Database, Resource } ;
Original file line number Diff line number Diff line change 1
1
{
2
- "compilerOptions" : {
3
- "outDir" : " ./build" ,
4
- "target" : " es2017" ,
5
- "esModuleInterop" : true ,
6
- "jsx" : " preserve" ,
7
- "declaration" : true ,
8
- "declarationDir" : " ./types" ,
9
- "strictNullChecks" : true ,
10
- "strictPropertyInitialization" : true ,
11
- "strictFunctionTypes" : true ,
12
- "strictBindCallApply" : true ,
13
- "noImplicitThis" : true ,
14
- "moduleResolution" : " node" ,
15
- "module" : " commonjs" ,
16
- "baseUrl" : " ./src" ,
17
- "skipLibCheck" : true
18
- },
19
- "include" : [
20
- " ./src/**/*"
21
- ],
22
- }
2
+ "compilerOptions" : {
3
+ "jsx" : " preserve" ,
4
+ "strictNullChecks" : true ,
5
+ "strictPropertyInitialization" : true ,
6
+ "strictFunctionTypes" : true ,
7
+ "strictBindCallApply" : true ,
8
+ "noImplicitThis" : true ,
9
+ "moduleResolution" : " node" ,
10
+ "baseUrl" : " ./src" ,
11
+ "skipLibCheck" : true ,
12
+ "module" : " commonjs" ,
13
+ "target" : " ES2018" ,
14
+ "sourceMap" : true ,
15
+ "outDir" : " lib" ,
16
+ "esModuleInterop" : true ,
17
+ "allowSyntheticDefaultImports" : true ,
18
+ "declaration" : true ,
19
+ "allowJs" : true
20
+ },
21
+ "include" : [" ./src/**/*" ],
22
+ "exclude" : [" **/*.spec.ts" ]
23
+ }
You can’t perform that action at this time.
0 commit comments