@rulab/adminjs-components 0.1.0-alpha.4 → 0.1.0-alpha.5

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.
@@ -4,7 +4,7 @@ const COMPONENT_NAME = 'Slug';
4
4
  const SlugFeature = (config) => {
5
5
  const { componentLoader, key } = config;
6
6
  const slugFeature = () => {
7
- const editComponent = bundleComponent(componentLoader, COMPONENT_NAME, 'SlugEdit.js');
7
+ const editComponent = bundleComponent(componentLoader, COMPONENT_NAME, 'SlugEdit');
8
8
  return buildFeature({
9
9
  properties: {
10
10
  [key]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulab/adminjs-components",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.5",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -36,6 +36,7 @@
36
36
  "@types/node": "^20.11.24",
37
37
  "@types/react": "^18.2.61",
38
38
  "eslint": "^8.57.0",
39
+ "tsc-alias": "^1.8.16",
39
40
  "tsup": "^8.1.0",
40
41
  "typescript": "^5.3.2"
41
42
  },
@@ -48,7 +49,8 @@
48
49
  ],
49
50
  "packageManager": "pnpm@8.15.6",
50
51
  "scripts": {
51
- "build": "tsup",
52
+ "build": "tsc && tsc-alias",
53
+ "build-tsup": "tsup",
52
54
  "lint": "tsc"
53
55
  }
54
56
  }
@@ -11,7 +11,7 @@ const SlugFeature = (config: SlugOptions): FeatureType => {
11
11
  const {componentLoader,key} = config
12
12
 
13
13
  const slugFeature = () => {
14
- const editComponent = bundleComponent(componentLoader, COMPONENT_NAME, 'SlugEdit.js')
14
+ const editComponent = bundleComponent(componentLoader, COMPONENT_NAME, 'SlugEdit')
15
15
  return buildFeature({
16
16
  properties: {
17
17
  [key]: {