ultimate-jekyll-manager 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -41,6 +41,10 @@ function resolveCommand(options) {
41
41
  function Main() {}
42
42
 
43
43
  Main.prototype.process = async function (options) {
44
+ // Fix options
45
+ options = options || {};
46
+ options._ = options._ || [];
47
+
44
48
  // Determine the command (use default if not provided)
45
49
  const command = resolveCommand(options);
46
50
 
@@ -194,7 +194,7 @@ async function fetchFirebaseAuth() {
194
194
  {
195
195
  remote: '__/auth/handler',
196
196
  // local: 'handler.html',
197
- filename: 'handler',
197
+ filename: 'handler.html',
198
198
  },
199
199
  {
200
200
  remote: '__/auth/handler.js',
@@ -205,7 +205,7 @@ async function fetchFirebaseAuth() {
205
205
  {
206
206
  remote: '__/auth/iframe',
207
207
  // local: 'iframe.html',
208
- filename: 'iframe',
208
+ filename: 'iframe.html',
209
209
  },
210
210
  {
211
211
  remote: '__/auth/iframe.js',
@@ -240,7 +240,15 @@ async function fetchFirebaseAuth() {
240
240
  })
241
241
  .then((r) => {
242
242
  // Write to file
243
- jetpack.write(finalPath, r);
243
+ // jetpack.write(finalPath, r);
244
+
245
+ jetpack.write(finalPath,
246
+ '---\n'
247
+ + `permalink: /${file.remote}\n`
248
+ + '---\n'
249
+ + '\n'
250
+ + r
251
+ )
244
252
  })
245
253
  );
246
254
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {