Skip to content

Commit

Permalink
proper moment import
Browse files Browse the repository at this point in the history
  • Loading branch information
mizzao committed Nov 10, 2019
1 parent afce55c commit 4cd1df3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -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": []
}
2 changes: 1 addition & 1 deletion lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions types/shims.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 4cd1df3

Please sign in to comment.