@elysiumjs/core 0.4.2 → 0.5.0

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/tsconfig.json CHANGED
@@ -12,36 +12,37 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
  {
15
- "compilerOptions": {
16
- // Environment setup & latest features
17
- "target": "ESNext",
18
- "module": "ESNext",
19
- "moduleDetection": "force",
20
- "allowJs": true,
21
- "types": [
22
- "bun-types",
23
- "type-fest"
24
- ],
25
- "experimentalDecorators": true,
26
- "emitDecoratorMetadata": true,
27
- // Bundler mode
28
- "moduleResolution": "bundler",
29
- "allowImportingTsExtensions": true,
30
- "verbatimModuleSyntax": true,
31
- "noEmit": true,
32
- // Best practices
33
- "strict": true,
34
- "skipLibCheck": true,
35
- "noFallthroughCasesInSwitch": true,
36
- "noUncheckedIndexedAccess": false,
37
- "forceConsistentCasingInFileNames": true,
38
- // Some stricter flags (disabled by default)
39
- "noUnusedLocals": true,
40
- "noUnusedParameters": true,
41
- "noPropertyAccessFromIndexSignature": false,
42
- },
43
- "exclude": [
44
- "node_modules",
45
- "dist",
46
- ],
47
- }
15
+ "compilerOptions": {
16
+ // Environment setup & latest features
17
+ "target": "ESNext",
18
+ "module": "ESNext",
19
+ "moduleDetection": "force",
20
+ "allowJs": true,
21
+ "types": ["bun-types", "type-fest"],
22
+ "experimentalDecorators": true,
23
+ "emitDecoratorMetadata": true,
24
+ // Compiler setup
25
+ "outDir": "dist",
26
+ "declaration": true,
27
+ "emitDeclarationOnly": true,
28
+ "declarationMap": true,
29
+ "declarationDir": "dist",
30
+ "rootDir": "src",
31
+ // Bundler mode
32
+ "moduleResolution": "bundler",
33
+ "allowImportingTsExtensions": true,
34
+ "verbatimModuleSyntax": true,
35
+ // Best practices
36
+ "strict": true,
37
+ "skipLibCheck": true,
38
+ "noFallthroughCasesInSwitch": true,
39
+ "noUncheckedIndexedAccess": false,
40
+ "forceConsistentCasingInFileNames": true,
41
+ // Some stricter flags (disabled by default)
42
+ "noUnusedLocals": true,
43
+ "noUnusedParameters": true,
44
+ "noPropertyAccessFromIndexSignature": false
45
+ },
46
+ "exclude": ["node_modules", "dist"],
47
+ "include": ["src"]
48
+ }
package/index.ts DELETED
@@ -1,54 +0,0 @@
1
- // Copyright (c) 2025-present Workbud Technologies Inc. All rights reserved.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- import './macros';
16
-
17
- export { type Elysia, type TSchema, type Static, t } from 'elysia';
18
- export { type AppContext, type ElysiumPlugin, Application } from './src/app';
19
- export { Cache } from './src/cache';
20
- export {
21
- type CommandArgumentProps,
22
- type CommandClass,
23
- Command,
24
- CommandArgumentType
25
- } from './src/command';
26
- export { ConsoleFormat, InteractsWithConsole } from './src/console';
27
- export { Database } from './src/database';
28
- export { Env } from './src/env';
29
- export { type EventData, type EventHandler, Event } from './src/event';
30
- export { type Context, type Route, HttpControllerScope, Http } from './src/http';
31
- export { Job } from './src/job';
32
- export { Middleware } from './src/middleware';
33
- export { type ModelClass, Model, Tenancy } from './src/model';
34
- export { type ModuleClass, Module } from './src/module';
35
- export { Redis } from './src/redis';
36
- export {
37
- type IdType,
38
- type RepositoryInterface,
39
- type RepositoryClass,
40
- Repository
41
- } from './src/repository';
42
- export { ServiceScope, Service } from './src/service';
43
- export {
44
- type WampRegistrationOptions,
45
- type WampSubscriptionOptions,
46
- type WampProps,
47
- type WampRegistrationHandlerArgs,
48
- type WampSubscriptionHandlerArgs,
49
- type WampRegistrationHandler,
50
- type WampSubscriptionHandler,
51
- Wamp
52
- } from './src/wamp';
53
- export { type WS, type WSError, Websocket } from './src/websocket';
54
- export { type QueueOptions, WorkerPool, Worker } from './src/worker';
package/macros.ts DELETED
@@ -1,16 +0,0 @@
1
- // Copyright (c) 2025-present Workbud Technologies Inc. All rights reserved.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- // Disable build mode by default
16
- global.ELYSIUM_BUILD = typeof ELYSIUM_BUILD !== 'undefined';