ajuste na importação do dayjs

This commit is contained in:
Luiz Silva 2025-10-26 19:22:44 -03:00
parent cb63a087fe
commit fa4b956698
5 changed files with 34 additions and 34 deletions

View file

@ -34,23 +34,23 @@ __export(dayjs_exports, {
module.exports = __toCommonJS(dayjs_exports); module.exports = __toCommonJS(dayjs_exports);
var import_dayjs = __toESM(require("dayjs")); var import_dayjs = __toESM(require("dayjs"));
var import_pt_br = require("dayjs/locale/pt-br"); var import_pt_br = require("dayjs/locale/pt-br");
var import_duration = __toESM(require("dayjs/plugin/duration")); var duration = __toESM(require("dayjs/plugin/duration"));
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter")); var isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter"));
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore")); var isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
var import_minMax = __toESM(require("dayjs/plugin/minMax")); var minMax = __toESM(require("dayjs/plugin/minMax"));
var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime")); var relativeTime = __toESM(require("dayjs/plugin/relativeTime"));
var import_timezone = __toESM(require("dayjs/plugin/timezone")); var timezone = __toESM(require("dayjs/plugin/timezone"));
var import_utc = __toESM(require("dayjs/plugin/utc")); var utc = __toESM(require("dayjs/plugin/utc"));
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear")); var weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
const dayjsbr = import_dayjs.default; const dayjsbr = import_dayjs.default;
dayjsbr.extend(import_utc.default); dayjsbr.extend(utc.default);
dayjsbr.extend(import_timezone.default); dayjsbr.extend(timezone.default);
dayjsbr.extend(import_weekOfYear.default); dayjsbr.extend(weekOfYear.default);
dayjsbr.extend(import_isSameOrBefore.default); dayjsbr.extend(isSameOrBefore.default);
dayjsbr.extend(import_isSameOrAfter.default); dayjsbr.extend(isSameOrAfter.default);
dayjsbr.extend(import_minMax.default); dayjsbr.extend(minMax.default);
dayjsbr.extend(import_relativeTime.default); dayjsbr.extend(relativeTime.default);
dayjsbr.extend(import_duration.default); dayjsbr.extend(duration.default);
dayjsbr.locale("pt-br"); dayjsbr.locale("pt-br");
// 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 = {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "p-comuns", "name": "p-comuns",
"version": "0.248.0", "version": "0.250.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

@ -4,23 +4,23 @@ const dayjsbr = dayjs
export type { ManipulateType } from "dayjs" export type { ManipulateType } from "dayjs"
import "dayjs/locale/pt-br" import "dayjs/locale/pt-br"
import duration from "dayjs/plugin/duration" import * as duration from "dayjs/plugin/duration"
import isSameOrAfter from "dayjs/plugin/isSameOrAfter" import * as isSameOrAfter from "dayjs/plugin/isSameOrAfter"
import isSameOrBefore from "dayjs/plugin/isSameOrBefore" import * as isSameOrBefore from "dayjs/plugin/isSameOrBefore"
import minMax from "dayjs/plugin/minMax" import * as minMax from "dayjs/plugin/minMax"
import relativeTime from "dayjs/plugin/relativeTime" import * as relativeTime from "dayjs/plugin/relativeTime"
import timezone from "dayjs/plugin/timezone" import * as timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc" import * as utc from "dayjs/plugin/utc"
import weekOfYear from "dayjs/plugin/weekOfYear" import * as weekOfYear from "dayjs/plugin/weekOfYear"
dayjsbr.extend(utc) dayjsbr.extend(utc.default)
dayjsbr.extend(timezone) dayjsbr.extend(timezone.default)
dayjsbr.extend(weekOfYear) dayjsbr.extend(weekOfYear.default)
dayjsbr.extend(isSameOrBefore) dayjsbr.extend(isSameOrBefore.default)
dayjsbr.extend(isSameOrAfter) dayjsbr.extend(isSameOrAfter.default)
dayjsbr.extend(minMax) dayjsbr.extend(minMax.default)
dayjsbr.extend(relativeTime) dayjsbr.extend(relativeTime.default)
dayjsbr.extend(duration) dayjsbr.extend(duration.default)
dayjsbr.locale("pt-br") dayjsbr.locale("pt-br")
export { dayjsbr, dayjs } export { dayjsbr, dayjs }