mirror of
https://github.com/penpot/penpot.git
synced 2025-01-07 15:39:42 -05:00
Merge pull request #5161 from penpot/niwinz-bugfix-6
🐛 Fix storybook build
This commit is contained in:
commit
7cc8f67e24
3 changed files with 6 additions and 6 deletions
|
@ -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/",
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue