@aromix/core 0.1.0 → 0.1.1

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/dist/index.cjs CHANGED
@@ -46,13 +46,6 @@ var Codec = {
46
46
  function toFetchHandler() {
47
47
  }
48
48
 
49
- // src/macro.ts
50
- function load(pattern) {
51
- throw new Error(
52
- "load() is a build-time macro and must not be called at runtime. Ensure your project is compiled with the Aromix build pipeline."
53
- );
54
- }
55
-
56
49
  // src/make/impl.ts
57
50
  function make() {
58
51
  }
@@ -69,5 +62,4 @@ function plugin() {
69
62
 
70
63
 
71
64
 
72
-
73
- exports.Builder = Builder; exports.Codec = Codec; exports.build = build; exports.config = config; exports.entity = entity; exports.load = load; exports.make = make; exports.plugin = plugin; exports.toFetchHandler = toFetchHandler;
65
+ exports.Builder = Builder; exports.Codec = Codec; exports.build = build; exports.config = config; exports.entity = entity; exports.make = make; exports.plugin = plugin; exports.toFetchHandler = toFetchHandler;
package/dist/index.d.cts CHANGED
@@ -49,30 +49,15 @@ declare const Codec: {
49
49
 
50
50
  declare function toFetchHandler(): void;
51
51
 
52
- type GlobPattern = string | string[];
53
- /**
54
- * Declares glob patterns for build-time resolution.
55
- * Returns an array of absolute file paths — resolved by the Aromix compiler.
56
- *
57
- * @example
58
- * load('@config/*') // string[]
59
- * load(['@entity/*', './x/*']) // string[]
60
- */
61
- declare function load(pattern: GlobPattern): string[];
52
+ declare function make(): void;
53
+
54
+ declare function plugin(): void;
55
+
62
56
  declare global {
63
57
  namespace Aromix {
64
- /**
65
- * Resolves glob patterns to absolute file paths at build time.
66
- * @example
67
- * Aromix.load('@config/*')
68
- * Aromix.load(['@entity/*', './extra/*.ts'])
69
- */
58
+ type GlobPattern = string | string[];
70
59
  function load(pattern: GlobPattern): string[];
71
60
  }
72
61
  }
73
62
 
74
- declare function make(): void;
75
-
76
- declare function plugin(): void;
77
-
78
- export { type AromixBuildConfig, type BaseCtx, Builder, Codec, type CommandCtx, type Config, type EventMap, type GlobPattern, type Platform, type SocketCtx, type StreamCtx, build, config, entity, load, make, plugin, toFetchHandler };
63
+ export { type AromixBuildConfig, type BaseCtx, Builder, Codec, type CommandCtx, type Config, type EventMap, type Platform, type SocketCtx, type StreamCtx, build, config, entity, make, plugin, toFetchHandler };
package/dist/index.d.ts CHANGED
@@ -49,30 +49,15 @@ declare const Codec: {
49
49
 
50
50
  declare function toFetchHandler(): void;
51
51
 
52
- type GlobPattern = string | string[];
53
- /**
54
- * Declares glob patterns for build-time resolution.
55
- * Returns an array of absolute file paths — resolved by the Aromix compiler.
56
- *
57
- * @example
58
- * load('@config/*') // string[]
59
- * load(['@entity/*', './x/*']) // string[]
60
- */
61
- declare function load(pattern: GlobPattern): string[];
52
+ declare function make(): void;
53
+
54
+ declare function plugin(): void;
55
+
62
56
  declare global {
63
57
  namespace Aromix {
64
- /**
65
- * Resolves glob patterns to absolute file paths at build time.
66
- * @example
67
- * Aromix.load('@config/*')
68
- * Aromix.load(['@entity/*', './extra/*.ts'])
69
- */
58
+ type GlobPattern = string | string[];
70
59
  function load(pattern: GlobPattern): string[];
71
60
  }
72
61
  }
73
62
 
74
- declare function make(): void;
75
-
76
- declare function plugin(): void;
77
-
78
- export { type AromixBuildConfig, type BaseCtx, Builder, Codec, type CommandCtx, type Config, type EventMap, type GlobPattern, type Platform, type SocketCtx, type StreamCtx, build, config, entity, load, make, plugin, toFetchHandler };
63
+ export { type AromixBuildConfig, type BaseCtx, Builder, Codec, type CommandCtx, type Config, type EventMap, type Platform, type SocketCtx, type StreamCtx, build, config, entity, make, plugin, toFetchHandler };
package/dist/index.js CHANGED
@@ -46,13 +46,6 @@ var Codec = {
46
46
  function toFetchHandler() {
47
47
  }
48
48
 
49
- // src/macro.ts
50
- function load(pattern) {
51
- throw new Error(
52
- "load() is a build-time macro and must not be called at runtime. Ensure your project is compiled with the Aromix build pipeline."
53
- );
54
- }
55
-
56
49
  // src/make/impl.ts
57
50
  function make() {
58
51
  }
@@ -66,7 +59,6 @@ export {
66
59
  build,
67
60
  config,
68
61
  entity,
69
- load,
70
62
  make,
71
63
  plugin,
72
64
  toFetchHandler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aromix/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Core runtime-agnostic framework for Aromix",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,6 +27,7 @@
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
+ "types": "./dist/index.d.ts",
30
31
  "exports": {
31
32
  ".": {
32
33
  "types": "./dist/index.d.ts",