From 4cd1df361ff84d23b2b408030c96ff5c2b246124 Mon Sep 17 00:00:00 2001 From: Andrew Mao Date: Sun, 10 Nov 2019 00:07:25 -0500 Subject: [PATCH] proper moment import --- .vscode/extensions.json | 10 ++++++++++ lib/util.ts | 2 +- types/shims.d.ts | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .vscode/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..7234a5c --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + // List of extensions which should be recommended for users of this workspace. + "recommendations": [ + "esbenp.prettier-vscode" + ], + // List of extensions recommended by VS Code that should not be recommended for users of this workspace. + "unwantedRecommendations": [] +} \ No newline at end of file diff --git a/lib/util.ts b/lib/util.ts index fca1f18..e149a0a 100644 --- a/lib/util.ts +++ b/lib/util.ts @@ -9,7 +9,7 @@ /* Server/client util files */ -import * as moment from "moment"; +import * as moment from "meteor/momentjs:moment"; import * as _ from "underscore"; export function formatMillis(millis) { diff --git a/types/shims.d.ts b/types/shims.d.ts index 84288ba..9f7b338 100644 --- a/types/shims.d.ts +++ b/types/shims.d.ts @@ -25,6 +25,8 @@ declare module "meteor/tracker" { declare module "meteor/mizzao:partitioner"; declare module "meteor/mizzao:user-status"; +declare module "meteor/momentjs:moment"; + // Old MTurk stuff declare module "mturk-api"; declare module "jspath";