File tree Expand file tree Collapse file tree 4 files changed +28
-31
lines changed Expand file tree Collapse file tree 4 files changed +28
-31
lines changed Original file line number Diff line number Diff line change 115115.yarn /install-state.gz
116116.pnp. *
117117
118- build
119- types
118+ lib
120119.vscode
Original file line number Diff line number Diff line change 22 "name" : " @admin-bro/sequelize" ,
33 "version" : " 1.2.1" ,
44 "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" ,
77 "scripts" : {
88 "build" : " tsc" ,
99 "dev" : " tsc --watch" ,
Original file line number Diff line number Diff line change 7878 * @type {typeof BaseDatabase }
7979 * @static
8080 */
81- import type { BaseDatabase , BaseResource } from 'admin-bro' ;
82- import Database from './src/database' ;
81+ import Database from './database' ;
8382
8483/**
8584 * Implementation of {@link BaseResource} for Sequelize Adapter
@@ -88,10 +87,8 @@ import Database from './src/database';
8887 * @type {typeof BaseResource }
8988 * @static
9089 */
91- import Resource from './src/ resource' ;
90+ import Resource from './resource' ;
9291
9392module . exports = { Database, Resource } ;
9493
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 11{
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