Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit 0ecb5f7

Browse files
committed
removed mkdirp dependency
1 parent bd310fb commit 0ecb5f7

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"async": "~0.2.6",
1313
"atom-select-list": "^0.7.0",
1414
"loophole": "^1",
15-
"mkdirp": "~0.5.1",
1615
"pegjs": "~0.8.0",
1716
"scoped-property-store": "^0.17.0",
1817
"season": "^6.0.2",

spec/snippet-loading-spec.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const path = require('path');
22
const fs = require('fs');
3-
const mkdirp = require('mkdirp');
43
const temp = require('temp').track();
54

65
describe("Snippet Loading", () => {
@@ -127,7 +126,7 @@ describe("Snippet Loading", () => {
127126

128127
describe("when ~/.atom/snippets.json exists", () => {
129128
beforeEach(() => {
130-
mkdirp.sync(configDirPath);
129+
fs.mkdirSync(configDirPath, { recursive: true });
131130
fs.writeFileSync(path.join(configDirPath, 'snippets.json'), `\
132131
{
133132
".foo": {
@@ -156,7 +155,7 @@ describe("Snippet Loading", () => {
156155

157156
describe("when that file changes", () => {
158157
it("reloads the snippets", () => {
159-
mkdirp.sync(configDirPath);
158+
fs.mkdirSync(configDirPath, { recursive: true });
160159
fs.writeFileSync(path.join(configDirPath, 'snippets.json'), `\
161160
{
162161
".foo": {
@@ -175,7 +174,7 @@ describe("Snippet Loading", () => {
175174
});
176175

177176
runs(() => {
178-
mkdirp.sync(configDirPath);
177+
fs.mkdirSync(configDirPath, { recursive: true });
179178
fs.writeFileSync(path.join(configDirPath, 'snippets.json'), "");
180179
});
181180

@@ -186,7 +185,7 @@ describe("Snippet Loading", () => {
186185

187186
describe("when ~/.atom/snippets.cson exists", () => {
188187
beforeEach(() => {
189-
mkdirp.sync(configDirPath);
188+
fs.mkdirSync(configDirPath, { recursive: true });
190189
fs.writeFileSync(path.join(configDirPath, 'snippets.cson'), `\
191190
".foo":
192191
"foo snippet":
@@ -211,7 +210,7 @@ describe("Snippet Loading", () => {
211210

212211
describe("when that file changes", () => {
213212
it("reloads the snippets", () => {
214-
mkdirp.sync(configDirPath);
213+
fs.mkdirSync(configDirPath, { recursive: true });
215214
fs.writeFileSync(path.join(configDirPath, 'snippets.cson'), `\
216215
".foo":
217216
"foo snippet":
@@ -226,7 +225,7 @@ describe("Snippet Loading", () => {
226225
});
227226

228227
runs(() => {
229-
mkdirp.sync(configDirPath);
228+
fs.mkdirSync(configDirPath, { recursive: true });
230229
fs.writeFileSync(path.join(configDirPath, 'snippets.cson'), "");
231230
});
232231

0 commit comments

Comments
 (0)