@bejibun/core 0.1.16 → 0.1.18

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,6 +1,5 @@
1
- import { isEmpty } from "@/utils/utils";
1
+ import { isEmpty } from "../utils/utils";
2
2
  export default class EnumBuilder {
3
- enums;
4
3
  constructor(enums) {
5
4
  if (isEmpty(enums))
6
5
  throw new Error("The enum parameter is required.");
@@ -1,6 +1,5 @@
1
- import { defineValue, isNotEmpty } from "@/utils/utils";
1
+ import { defineValue, isNotEmpty } from "../utils/utils";
2
2
  export default class StrBuilder {
3
- value;
4
3
  constructor() {
5
4
  this.value = "";
6
5
  }
package/dist/index.d.ts CHANGED
@@ -1 +1,3 @@
1
- export * from "@/index";
1
+ export * from "./utils/Enum";
2
+ export * from "./utils/Str";
3
+ export * from "./utils/utils";
package/dist/index.js CHANGED
@@ -1 +1,3 @@
1
- export * from "@/index";
1
+ export * from "./utils/Enum";
2
+ export * from "./utils/Str";
3
+ export * from "./utils/utils";
@@ -1,4 +1,4 @@
1
- import EnumBuilder from "@/builders/EnumBuilder";
1
+ import EnumBuilder from "../builders/EnumBuilder";
2
2
  export default class Enum {
3
3
  static setEnums(enums: any): EnumBuilder;
4
4
  }
@@ -1,4 +1,4 @@
1
- import EnumBuilder from "@/builders/EnumBuilder";
1
+ import EnumBuilder from "../builders/EnumBuilder";
2
2
  export default class Enum {
3
3
  static setEnums(enums) {
4
4
  return new EnumBuilder(enums);
@@ -1,4 +1,4 @@
1
- import StrBuilder from "@/builders/StrBuilder";
1
+ import StrBuilder from "../builders/StrBuilder";
2
2
  export default class Str {
3
3
  static toPascalCase(value: string, combine?: boolean): StrBuilder | string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import StrBuilder from "@/builders/StrBuilder";
1
+ import StrBuilder from "../builders/StrBuilder";
2
2
  export default class Str {
3
3
  static toPascalCase(value, combine) {
4
4
  return new StrBuilder().setValue(value).toPascalCase(combine);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/core",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Core of Bejibun Framework",
5
5
  "keywords": [
6
6
  "bun",
@@ -21,27 +21,27 @@
21
21
  "author": "Havea Crenata <havea.crenata@gmail.com>",
22
22
  "type": "module",
23
23
  "main": "./dist/index.js",
24
+ "module": "./dist/index.js",
24
25
  "types": "./dist/index.d.ts",
25
26
  "exports": {
26
27
  ".": {
27
28
  "import": "./dist/index.js",
28
29
  "types": "./dist/index.d.ts"
29
- }
30
+ },
31
+ "./*": "./dist/*"
30
32
  },
31
33
  "files": [
32
34
  "dist"
33
35
  ],
34
36
  "scripts": {
35
- "build": "tsc --project tsconfig.json"
36
- },
37
- "dependencies": {
38
- "bun-types": "^1.3.0",
39
- "csstype": "^3.1.3",
40
- "typescript": "^5.9.3",
41
- "undici-types": "^7.14.0"
37
+ "clean": "rm -rf dist",
38
+ "build": "bun run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json"
42
39
  },
40
+ "dependencies": {},
43
41
  "devDependencies": {
44
- "@types/bun": "latest"
42
+ "@types/bun": "latest",
43
+ "tsc-alias": "^1.8.16",
44
+ "typescript": "^5.9.3"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "typescript": "^5"
@@ -1,3 +0,0 @@
1
- export * from "@/utils/Enum";
2
- export * from "@/utils/Str";
3
- export * from "@/utils/utils";
package/dist/src/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from "@/utils/Enum";
2
- export * from "@/utils/Str";
3
- export * from "@/utils/utils";
File without changes
File without changes
File without changes