@kalel1500/kalion-js 0.10.0-beta.0 → 0.10.1-beta.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.
@@ -1,5 +1,5 @@
1
1
  // Importamos e iniciamos los paquetes necesarios en la aplicación
2
- import './config/bootstrap';
2
+ import '@/config/bootstrap';
3
3
 
4
4
  // @ts-ignore
5
5
  import.meta.glob([
@@ -1,8 +1,8 @@
1
1
  import 'flowbite';
2
- import './constants';
3
- import './translations';
2
+ import '@/config/constants';
3
+ import '@/config/translations';
4
4
  import { EnvVariables, Route, UtilitiesServiceProvider } from '@kalel1500/kalion-js';
5
- import { defineRoutes } from './routes';
5
+ import { defineRoutes } from '@/config/routes';
6
6
 
7
7
  // Declare .env variables
8
8
  declare global {
@@ -1,5 +1,5 @@
1
1
  import { Route } from '@kalel1500/kalion-js';
2
- import HomeController from '../src/home/infrastructure/HomeController';
2
+ import HomeController from '@/src/home/infrastructure/HomeController';
3
3
 
4
4
  export function defineRoutes(): void {
5
5
  Route.page('home', [HomeController, 'home']);
@@ -1,5 +1,5 @@
1
- import es from './lang/es.json';
2
- import en from './lang/en.json';
1
+ import es from '@/config/lang/es.json';
2
+ import en from '@/config/lang/en.json';
3
3
  import { DefaultTranslations, TranslationReplacements, Translator } from '@kalel1500/kalion-js';
4
4
 
5
5
  export interface AppTranslations extends DefaultTranslations {
@@ -1,4 +1,4 @@
1
- import HomeUseCase from '../application/HomeUseCase';
1
+ import HomeUseCase from '@/src/home/application/HomeUseCase';
2
2
 
3
3
  export default class HomeController {
4
4
  home() {
@@ -19,7 +19,12 @@
19
19
  "strict": true, /* Enable all strict type-checking options. */
20
20
 
21
21
  /* Completeness */
22
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
22
+ "skipLibCheck": true, /* Skip type checking all .d.ts files. */
23
+
24
+ /* Paths */
25
+ "paths": {
26
+ "@/*": ["./resources/js/*"]
27
+ }
23
28
  },
24
29
  "exclude": ["vendor"]
25
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kalel1500/kalion-js",
3
- "version": "0.10.0-beta.0",
3
+ "version": "0.10.1-beta.0",
4
4
  "description": "Utilidades de typescript para Laravel",
5
5
  "type": "module",
6
6
  "main": "dist/app/kalion-js.es.js",