refactor!: remove next.js (#3267)
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
{
|
||||
"name": "@toeverything/infra",
|
||||
"type": "module",
|
||||
"module": "./dist/index.mjs",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"module": "./dist/index.js",
|
||||
"main": "./dist/index.cjs",
|
||||
"types": "./dist/src/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"types": "./dist/src/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"./core/*": {
|
||||
"types": "./dist/core/*.d.ts",
|
||||
"types": "./dist/src/core/*.d.ts",
|
||||
"import": "./dist/core/*.js",
|
||||
"require": "./dist/core/*.cjs"
|
||||
},
|
||||
"./preload/*": {
|
||||
"types": "./dist/preload/*.d.ts",
|
||||
"types": "./dist/src/preload/*.d.ts",
|
||||
"import": "./dist/preload/*.js",
|
||||
"require": "./dist/preload/*.cjs"
|
||||
}
|
||||
|
||||
2
packages/infra/preload/electron.d.ts
vendored
2
packages/infra/preload/electron.d.ts
vendored
@@ -1,3 +1,3 @@
|
||||
/* eslint-disable */
|
||||
// @ts-ignore
|
||||
export * from '../dist/preload/electron';
|
||||
export * from '../dist/src/preload/electron';
|
||||
|
||||
@@ -7,8 +7,8 @@ import type {
|
||||
UIHandlers,
|
||||
UpdaterHandlers,
|
||||
WorkspaceHandlers,
|
||||
} from './type';
|
||||
import { HandlerManager } from './type';
|
||||
} from './type.js';
|
||||
import { HandlerManager } from './type.js';
|
||||
|
||||
export abstract class DBHandlerManager extends HandlerManager<
|
||||
'db',
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export * from './handler';
|
||||
export * from './type';
|
||||
export * from './handler.js';
|
||||
export * from './type.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TypedEventEmitter } from './core/event-emitter';
|
||||
import type { TypedEventEmitter } from './core/event-emitter.js';
|
||||
|
||||
export abstract class HandlerManager<
|
||||
Namespace extends string,
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"noEmit": false,
|
||||
"moduleResolution": "Node16",
|
||||
"outDir": "lib"
|
||||
},
|
||||
"references": [
|
||||
|
||||
@@ -22,9 +22,5 @@ export default defineConfig({
|
||||
external: ['electron', 'async-call-rpc', 'rxjs'],
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
dts({
|
||||
insertTypesEntry: true,
|
||||
}),
|
||||
],
|
||||
plugins: [dts()],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user