refactor!: remove next.js (#3267)

This commit is contained in:
Alex Yang
2023-07-19 00:53:10 +08:00
committed by GitHub
parent 79227a1e7c
commit 47f12f77f2
296 changed files with 4115 additions and 3617 deletions

View File

@@ -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"
}

View File

@@ -1,3 +1,3 @@
/* eslint-disable */
// @ts-ignore
export * from '../dist/preload/electron';
export * from '../dist/src/preload/electron';

View File

@@ -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',

View File

@@ -1,2 +1,2 @@
export * from './handler';
export * from './type';
export * from './handler.js';
export * from './type.js';

View File

@@ -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,

View File

@@ -4,6 +4,7 @@
"compilerOptions": {
"composite": true,
"noEmit": false,
"moduleResolution": "Node16",
"outDir": "lib"
},
"references": [

View File

@@ -22,9 +22,5 @@ export default defineConfig({
external: ['electron', 'async-call-rpc', 'rxjs'],
},
},
plugins: [
dts({
insertTypesEntry: true,
}),
],
plugins: [dts()],
});