Skip to content

Commit

Permalink
Rework interface entry to avoid empty chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Jul 10, 2024
1 parent 4fad90c commit a32183e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 25 deletions.
2 changes: 1 addition & 1 deletion app/assets/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import type { LoginForm } from './loginForm'
import type { UserInterface } from './userInterface'
import { type AlertInterface, AlertStyle } from './alerts'

export type { LoginForm, UserInterface, AlertInterface, AlertStyle }
export { type LoginForm, type UserInterface, type AlertInterface, AlertStyle }
16 changes: 0 additions & 16 deletions app/assets/types.ts

This file was deleted.

5 changes: 4 additions & 1 deletion dist/interfaces.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@

var a = /* @__PURE__ */ ((r) => (r.Primary = "Primary", r.Success = "Success", r.Warning = "Warning", r.Danger = "Danger", r))(a || {});
export {
a as AlertStyle
};
2 changes: 1 addition & 1 deletion dist/interfaces.umd.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict"});
(function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["@userfrosting/sprinkle-account"]={}))})(this,function(e){"use strict";var n=(i=>(i.Primary="Primary",i.Success="Success",i.Warning="Warning",i.Danger="Danger",i))(n||{});e.AlertStyle=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
2 changes: 1 addition & 1 deletion dist/interfaces/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { LoginForm } from './loginForm';
import { UserInterface } from './userInterface';
import { AlertInterface, AlertStyle } from './alerts';

export type { LoginForm, UserInterface, AlertInterface, AlertStyle };
export { type LoginForm, type UserInterface, type AlertInterface, AlertStyle };
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@
"bugs": {
"url": "https://github.com/userfrosting/UserFrosting/issues"
},
"main": "./dist/plugin.umd.cjs",
"module": "./dist/plugins.js",
"types": "./dist/plugins.d.ts",
"exports": {
"./interfaces": {
"import": "./dist/interfaces.js",
"require": "./dist/interfaces.cjs",
"types": "./dist/interfaces.d.ts"
"require": "./dist/interfaces.umd.cjs",
"types": "./dist/interfaces/index.d.ts"
},
"./*": "./app/assets/*"
},
Expand Down

0 comments on commit a32183e

Please sign in to comment.