0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

Merge pull request #5161 from penpot/niwinz-bugfix-6

🐛 Fix storybook build
This commit is contained in:
Andrey Antukh 2024-10-11 12:28:41 +02:00 committed by GitHub
commit 7cc8f67e24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@
"build:app:assets": "node ./scripts/build-app-assets.js",
"build:storybook": "yarn run build:storybook:assets && yarn run build:storybook:cljs && storybook build",
"build:storybook:assets": "node ./scripts/build-storybook-assets.js",
"build:storybook:cljs": "clojure -M:dev:shadow-cljs release storybook",
"build:storybook:cljs": "clojure -M:dev:shadow-cljs compile storybook",
"build:renderer": "yarn run wasm-pack build ./renderer --target web --out-dir ../resources/public/js/renderer --release",
"e2e:server": "node ./scripts/e2e-server.js",
"fmt:clj": "cljfmt fix --parallel=true src/ test/",

View file

@ -6,7 +6,7 @@
(ns app.util.time
(:require
["./time_impl.js" :as impl]
["./time_impl" :as impl]
[app.common.data.macros :as dm]
[app.common.time :as common-time]
[app.util.object :as obj]

View file

@ -1,5 +1,5 @@
import fmt1 from "date-fns/format";
import fmt2 from "date-fns/formatDistanceToNowStrict";
import {format as dfnFormat} from "date-fns/format";
import {formatDistanceToNowStrict as dfnFormatDistance} from "date-fns/formatDistanceToNowStrict";
import {arSA} from "date-fns/locale/ar-SA";
import {ca} from "date-fns/locale/ca";
@ -67,5 +67,5 @@ export const locales = {
"ja_jp": ja,
};
export const format = fmt1.format;
export const format_distance_to_now = fmt2.formatDistanceToNowStrict;
export const format = dfnFormat;
export const format_distance_to_now = dfnFormatDistance;