ajuste de pacotes

This commit is contained in:
Luiz Silva 2025-10-26 20:20:39 -03:00
parent d9c2b3580e
commit 16706f7438
4 changed files with 11 additions and 4 deletions

View file

@ -29,7 +29,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
var dayjs_exports = {}; var dayjs_exports = {};
__export(dayjs_exports, { __export(dayjs_exports, {
dayjs: () => import_dayjs.default, dayjs: () => import_dayjs.default,
dayjsbr: () => dayjsbr dayjsbr: () => dayjsbr,
default: () => dayjs_default
}); });
module.exports = __toCommonJS(dayjs_exports); module.exports = __toCommonJS(dayjs_exports);
var import_dayjs = __toESM(require("dayjs")); var import_dayjs = __toESM(require("dayjs"));
@ -52,6 +53,7 @@ import_dayjs.default.extend(import_relativeTime.default);
import_dayjs.default.extend(import_duration.default); import_dayjs.default.extend(import_duration.default);
import_dayjs.default.locale("pt-br"); import_dayjs.default.locale("pt-br");
const dayjsbr = import_dayjs.default; const dayjsbr = import_dayjs.default;
var dayjs_default = dayjsbr;
// Annotate the CommonJS export names for ESM import in node: // Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = { 0 && (module.exports = {
dayjs, dayjs,

View file

@ -1,6 +1,6 @@
{ {
"name": "p-comuns", "name": "p-comuns",
"version": "0.251.0", "version": "0.252.0",
"description": "", "description": "",
"main": "./dist-back/index.js", "main": "./dist-back/index.js",
"module": "./dist-front/index.mjs", "module": "./dist-front/index.mjs",

Binary file not shown.

View file

@ -1,5 +1,5 @@
// dayjsbr.ts
import dayjs from "dayjs" import dayjs from "dayjs"
import "dayjs/locale/pt-br" import "dayjs/locale/pt-br"
import duration from "dayjs/plugin/duration" import duration from "dayjs/plugin/duration"
@ -11,6 +11,7 @@ import timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc" import utc from "dayjs/plugin/utc"
import weekOfYear from "dayjs/plugin/weekOfYear" import weekOfYear from "dayjs/plugin/weekOfYear"
// ordem dos extends (utc antes de timezone)
dayjs.extend(utc) dayjs.extend(utc)
dayjs.extend(timezone) dayjs.extend(timezone)
dayjs.extend(weekOfYear) dayjs.extend(weekOfYear)
@ -23,5 +24,9 @@ dayjs.extend(duration)
dayjs.locale("pt-br") dayjs.locale("pt-br")
export const dayjsbr = dayjs export const dayjsbr = dayjs
export { dayjs } export default dayjsbr
// útil para tipagens em chamadas de add/subtract etc.
export type { ManipulateType } from "dayjs" export type { ManipulateType } from "dayjs"
export { dayjs }