Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmachuca committed Dec 25, 2024
1 parent cdb0e50 commit 0d5a95a
Show file tree
Hide file tree
Showing 50 changed files with 126 additions and 95 deletions.
3 changes: 1 addition & 2 deletions build-esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ const baseSettings = {
chunkNames: "chunks/[name]-[hash]",
plugins: [
alias({
"types": path.join(__dirname, "src/types/global/index.d.ts"),
"./types/global": path.join(__dirname, "src/types/global/index.d.ts")
"@types": path.join(__dirname, "src/types/global/index.d.ts")
})
],
external: ["os", "path", "http", "url",
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default [
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
programs: [parser.createProgram('tsconfig.json')],
programs: [parser.createProgram('tsconfig.json')]
}
,

Expand Down
51 changes: 40 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"build:esbuild": "node ./build-esbuild.js",
"start": "qcobjects-shell",
"test:ts-types": "npx tsc --project ./tsconfig.jasmine.json ",
"test:jasmine": "npm run test:ts-types && npx ts-node --project ./tsconfig.jasmine.json ./node_modules/jasmine/bin/jasmine.js",
"test:jasmine": "npm run test:ts-types && npx ts-node -r tsconfig-paths/register --project ./tsconfig.jasmine.json ./node_modules/jasmine/bin/jasmine.js",
"test": "(npm run lint && npm run test:jasmine)",
"lint": "(npx -y eslint@latest src/**/*.ts --fix )",
"preversion": "npm cache verify && npm test",
Expand Down Expand Up @@ -135,6 +135,7 @@
"install": "^0.13.0",
"jasmine": "^3.99.0",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.1"
},
Expand Down
2 changes: 1 addition & 1 deletion public/browser/qcobjects.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/cjs/index.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/esm/index.mjs.map

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions public/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ declare module "Cast" {
export const _CastProps: (obj_source: any, obj_dest: any, _ignoreError?: boolean) => any;
}
declare module "DOMCreateElement" {
import { IQCObjectsElement } from "./types/global";
import { IQCObjectsElement } from "@types";

Check failure on line 63 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module '@types' or its corresponding type declarations.
export const _DOMCreateElement: (elementName: string, props?: any[], children?: any) => IQCObjectsElement;
export const _DOMCreateComplexElement: (_type: string | Function, props?: any[], children?: any) => HTMLElement | IQCObjectsElement;
}
Expand All @@ -85,7 +85,7 @@ declare module "Package" {
export const Package: (namespace: string, classes?: any[]) => any[];
}
declare module "InheritClass" {
import { type IInheritClass, type TBody } from "./types/global";
import { type IInheritClass, type TBody } from "@types";

Check failure on line 88 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module '@types' or its corresponding type declarations.
export class InheritClass implements IInheritClass {
[key: string]: any;
__definition: any;
Expand Down Expand Up @@ -138,7 +138,7 @@ declare module "LegacyCopy" {
export const _LegacyCopy: (obj: any, _ignore?: string[]) => any;
}
declare module "Class" {
import { TClass } from "./types/global";
import { TClass } from "@types";

Check failure on line 141 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module '@types' or its corresponding type declarations.
/**
* Creates new object class of another object
*
Expand Down Expand Up @@ -199,7 +199,7 @@ declare module "secretKey" {
export const _secretKey: string;
}
declare module "Crypt" {
import { _ICrypt } from "./types/global";
import { _ICrypt } from "@types";

Check failure on line 202 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module '@types' or its corresponding type declarations.
import { InheritClass } from "InheritClass";

Check failure on line 203 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module 'InheritClass' or its corresponding type declarations.
export class _Crypt extends InheritClass implements _ICrypt {
string: string;
Expand Down Expand Up @@ -250,7 +250,7 @@ declare module "ConfigSettings" {
}
declare module "CONFIG" {
import { InheritClass } from "InheritClass";

Check failure on line 252 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module 'InheritClass' or its corresponding type declarations.
import { ICONFIG } from "./types/global";
import { ICONFIG } from "@types";

Check failure on line 253 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module '@types' or its corresponding type declarations.
export class CONFIG extends InheritClass implements ICONFIG {
get _CONFIG_ENC(): string;
get _CONFIG(): unknown;
Expand All @@ -263,7 +263,7 @@ declare module "CONFIG" {
}
}
declare module "Processor" {
import { type IComponent, type IProcessor } from "./types/global";
import { type IComponent, type IProcessor } from "@types";

Check failure on line 266 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module '@types' or its corresponding type declarations.
import { InheritClass } from "InheritClass";

Check failure on line 267 in public/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module 'InheritClass' or its corresponding type declarations.
export class Processor extends InheritClass implements IProcessor {
protected static _instance: IProcessor | undefined;
Expand All @@ -282,13 +282,13 @@ declare module "Processor" {
export const GlobalProcessor: IProcessor;
}
declare module "routings" {
import { TComponentRouting } from "./types/global";
import { TComponentRouting } from "@types";
export const __routing_params__: (routing: TComponentRouting, routingPath: string) => object;
export const __valid_routings__: (routings: TComponentRouting[], routingPath: string) => TComponentRouting[];
export const __valid_routing_way__: (validRoutingWays: string[], routingWay: string) => boolean;
}
declare module "asyncLoad" {
import { TAsyncLoadCallback } from "./types/global";
import { TAsyncLoadCallback } from "@types";
export const _asyncLoad: any[];
export function asyncLoad(callback: TAsyncLoadCallback, args?: any[]): any;
export const _fireAsyncLoad: () => void;
Expand All @@ -310,7 +310,7 @@ declare module "ComplexStorageCache" {
}
}
declare module "serviceLoader" {
import { IService } from "./types/global";
import { IService } from "@types";
/**
* Loads a simple component from a template
*
Expand All @@ -323,7 +323,7 @@ declare module "tag_filter" {
export const _tag_filter_ = "quick-component:not([loaded]),component:not([loaded])";
}
declare module "componentLoader" {
import { IComponent } from "./types/global";
import { IComponent } from "@types";
/**
* Loads a simple component from a template
*
Expand All @@ -334,7 +334,7 @@ declare module "componentLoader" {
}
declare module "Component" {
import { InheritClass } from "InheritClass";
import { IComponent, IController, IEffect, IProcessor, IQCObjectsElement, IQCObjectsShadowedElement, IView, TBody, TComponentDoneResponse, TComponentParams, TComponentRouting, TComponentRoutings } from "./types/global";
import { IComponent, IController, IEffect, IProcessor, IQCObjectsElement, IQCObjectsShadowedElement, IView, TBody, TComponentDoneResponse, TComponentParams, TComponentRouting, TComponentRoutings } from "@types";
export class Component extends InheritClass implements IComponent {
static shadowed: boolean | undefined;
static cached: any;
Expand Down Expand Up @@ -451,7 +451,7 @@ declare module "Component" {
}
}
declare module "ComponentFactory" {
import { TComponentURIParams } from "./types/global";
import { TComponentURIParams } from "@types";
import { Component } from "Component";
/**
* Returns a standarized uri for a component
Expand All @@ -467,7 +467,7 @@ declare module "ComponentFactory" {
}
declare module "Service" {
import { InheritClass } from "InheritClass";
import { IJSONService, IService, TServiceDoneResponse, TServiceStandardResponse } from "./types/global";
import { IJSONService, IService, TServiceDoneResponse, TServiceStandardResponse } from "@types";
export class Service extends InheritClass implements IService {
options: object;
withCredentials: boolean;
Expand Down Expand Up @@ -517,7 +517,7 @@ declare module "Service" {
}
}
declare module "globalSettings" {
import { IGlobalSettings } from "./types/global";
import { IGlobalSettings } from "@types";
import { InheritClass } from "InheritClass";
import { Logger } from "Logger";
export class GlobalSettings extends InheritClass implements IGlobalSettings {
Expand All @@ -535,7 +535,7 @@ declare module "globalSettings" {
}
}
declare module "top" {
import { IComplexStorageCache, IComponent, IConfigService } from "./types/global";
import { IComplexStorageCache, IComponent, IConfigService } from "@types";
type QCObjects = {
lastCache?: IComplexStorageCache;
componentsStack: IComponent[];
Expand Down Expand Up @@ -633,7 +633,7 @@ declare module "make_global" {
export const __make_global__: (f: any) => void;
}
declare module "PrimaryCollections" {
import { T_QC_CLASSES, T_QC_PACKAGES } from "./types/global";
import { T_QC_CLASSES, T_QC_PACKAGES } from "@types";
export var _QC_CLASSES: T_QC_CLASSES;
export var _QC_PACKAGES: T_QC_PACKAGES;
export var _QC_PACKAGES_IMPORTED: any[];
Expand All @@ -647,14 +647,14 @@ declare module "PrimaryCollections" {
export const set_QC_PACKAGE: (packageName: string, _qc_packages: any[]) => void;
}
declare module "ClassFactory" {
import { TClassFactory } from "./types/global";
import { TClassFactory } from "@types";
export const ClassFactory: TClassFactory;
}
declare module "mathFunctions" {
export const __to_number: (value: any) => number;
}
declare module "ArrayCollection" {
import { IArrayCollection, IArrayList } from "./types/global";
import { IArrayCollection, IArrayList } from "@types";
export class ArrayList extends Array implements IArrayList {
prototype: any;
unique(): any[];
Expand All @@ -680,7 +680,7 @@ declare module "BackendMicroservice" {
import { Http2Stream } from "http2";
import { Stream } from "stream";
import { InheritClass } from "InheritClass";
import { IMicroservice } from "./types/global";
import { IMicroservice } from "@types";
export class BackendMicroservice extends InheritClass {
stream: any;
route: any;
Expand All @@ -702,7 +702,7 @@ declare module "BackendMicroservice" {
}
}
declare module "Controller" {
import { IController, IComponent, TControllerParams } from "./types/global";
import { IController, IComponent, TControllerParams } from "@types";
import { InheritClass } from "InheritClass";
export class Controller extends InheritClass implements IController {
component: IComponent;
Expand All @@ -717,7 +717,7 @@ declare module "Controller" {
}
}
declare module "DDO" {
import { TDDOParams } from "./types/global";
import { TDDOParams } from "@types";
import { InheritClass } from "InheritClass";
/**
* Dynamic Data Objects Class
Expand Down Expand Up @@ -746,7 +746,7 @@ declare module "RegisterClass" {
export const RegisterClass: (_class_: any, __namespace?: string) => any;
}
declare module "DefaultTemplateHandler" {
import { DefaultTemplateHandlerParams, IComponent } from "./types/global";
import { DefaultTemplateHandlerParams, IComponent } from "@types";
export class DefaultTemplateHandler {
template: string;
__definition: {};
Expand All @@ -760,7 +760,7 @@ declare module "DocumentLayout" {
export const getDocumentLayout: () => string | undefined;
}
declare module "Effect" {
import { IEffect, TEffectParams } from "./types/global";
import { IEffect, TEffectParams } from "@types";
import { InheritClass } from "InheritClass";
class Effect extends InheritClass implements IEffect {
done(...args: any[]): any;
Expand Down Expand Up @@ -821,7 +821,7 @@ declare module "Ready" {
export const _Ready: (e: any) => void;
}
declare module "Tag" {
import { ITagElements } from "./types/global";
import { ITagElements } from "@types";
import { ArrayList } from "ArrayCollection";
export class TagElements extends ArrayList implements ITagElements {
show(): void;
Expand Down Expand Up @@ -864,7 +864,7 @@ declare module "loadSDK" {
}
declare module "MainProcess" { }
declare module "SourceCSS" {
import { ISourceCSS } from "./types/global";
import { ISourceCSS } from "@types";
import { InheritClass } from "InheritClass";
export class SourceCSS extends InheritClass implements ISourceCSS {
domain: string;
Expand All @@ -883,7 +883,7 @@ declare module "SourceCSS" {
}
}
declare module "SourceJS" {
import { ISourceJS } from "./types/global";
import { ISourceJS } from "@types";
import { InheritClass } from "InheritClass";
export class SourceJS extends InheritClass implements ISourceJS {
domain: string;
Expand All @@ -906,7 +906,7 @@ declare module "SourceJS" {
}
}
declare module "Timer" {
import { ITimer, TTimerParams } from "./types/global";
import { ITimer, TTimerParams } from "@types";
import { InheritClass } from "InheritClass";
export class Timer extends InheritClass implements ITimer {
duration: number;
Expand Down Expand Up @@ -935,7 +935,7 @@ declare module "Toggle" {
}
declare module "TransitionEffect" {
import { Effect } from "Effect";
import { ITransitionEffect, IComponent, TTransitionEffectParams } from "./types/global";
import { ITransitionEffect, IComponent, TTransitionEffectParams } from "@types";
export class TransitionEffect extends Effect implements ITransitionEffect {
duration: number;
defaultParams: {
Expand All @@ -962,7 +962,7 @@ declare module "VO" {
}
declare module "View" {
import { InheritClass } from "InheritClass";
import { TViewParams } from "./types/global";
import { TViewParams } from "@types";
export class View extends InheritClass {
constructor({ component, dependencies }: TViewParams);
}
Expand Down Expand Up @@ -1040,7 +1040,7 @@ declare module "qcobjects" {
export { Toggle } from "Toggle";
export { findPackageNodePath } from "findPackageNodePath";
export { getDocumentLayout } from "DocumentLayout";
export { IQCObjectsElement, IQCObjectsShadowedElement } from "./types/global";
export { IQCObjectsElement, IQCObjectsShadowedElement } from "@types";
export { __to_number } from "mathFunctions";
export { _top as global } from "top";
export { __make_global__ } from "make_global";
Expand Down
2 changes: 1 addition & 1 deletion public/types/index.d.ts.map

Large diffs are not rendered by default.

Loading

0 comments on commit 0d5a95a

Please sign in to comment.