Skip to content

Commit d2dc3f0

Browse files
Update js module imports
1 parent dd28feb commit d2dc3f0

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

package-lock.json

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"categories": [
2121
"Other"
2222
],
23-
"main": "./out/extension",
23+
"main": "./out/extension",
2424
"activationEvents": [
2525
"onCommand:string-manipulation.titleize",
2626
"onCommand:string-manipulation.titleizeApStyle",
@@ -353,6 +353,7 @@
353353
},
354354
"dependencies": {
355355
"@sindresorhus/slugify": "^0.3.0",
356+
"@types/underscore.string": "^0.0.41",
356357
"ap-style-title-case": "^1.1.2",
357358
"chicago-capitalize": "^0.1.0",
358359
"underscore.string": "^3.3.5"

src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as vscode from "vscode";
22
import * as _string from "underscore.string";
3-
import apStyleTitleCase from "ap-style-title-case";
4-
import chicagoStyleTitleCase from "chicago-capitalize";
5-
import slugify from "@sindresorhus/slugify";
3+
const apStyleTitleCase = require("ap-style-title-case");
4+
const chicagoStyleTitleCase = require("chicago-capitalize");
5+
const slugify = require("@sindresorhus/slugify");
66

77
interface MultiSelectData {
88
offset?: number;

0 commit comments

Comments
 (0)