Skip to content

Commit 9b1d297

Browse files
committed
Use import for uuid instead of require
1 parent 389c3c8 commit 9b1d297

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/office-addin-manifest/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@types/mocha": "^5.2.5",
3333
"@types/node": "^10.5.7",
3434
"@types/node-fetch": "^2.1.2",
35+
"@types/uuid": "^3.4.4",
3536
"@types/xml2js": "^0.4.3",
3637
"concurrently": "^3.6.1",
3738
"copy-dir": "^0.4.0",

packages/office-addin-manifest/src/manifestInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as fs from "fs";
22
import * as util from "util";
3+
import * as uuid from "uuid";
34
import * as xml2js from "xml2js";
45
import * as xmlMethods from "./xml";
56
const readFileAsync = util.promisify(fs.readFile);
6-
const uuid = require('uuid/v1');
77
const writeFileAsync = util.promisify(fs.writeFile);
88
type Xml = any;
99

0 commit comments

Comments
 (0)