1.5.1 -> Fix changelogs in prod

sidebar v1.5.1
Kit Kasune 3 years ago
parent c9ae623c08
commit 1d7726b2a1
  1. 1
      json/changelogs/1.5.1.json
  2. 4
      package-lock.json
  3. 2
      package.json
  4. 3
      scripts/startup/changelog.js

@ -0,0 +1 @@
{"log":{"Bugs":["Changelogs work in production","My brain is quite small yes yes","Hope this doesn't break anything else *shrug*"]},"version":{"name":"Alpha","semver":"1.5.1"}}

4
package-lock.json generated

@ -1,12 +1,12 @@
{ {
"name": "filekade", "name": "filekade",
"version": "1.5.0", "version": "1.5.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "filekade", "name": "filekade",
"version": "1.5.0", "version": "1.5.1",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"chalk": "^4.1.2", "chalk": "^4.1.2",

@ -1,6 +1,6 @@
{ {
"name": "filekade", "name": "filekade",
"version": "1.5.0", "version": "1.5.1",
"description": "A file explorer (primarily a learning experience for me)", "description": "A file explorer (primarily a learning experience for me)",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

@ -1,10 +1,11 @@
const fs = require('fs'); const fs = require('fs');
const Mousetrap = require('../dep/mousetrap'); const Mousetrap = require('../dep/mousetrap');
const path = require('path');
const preModal = require('../modal/pre'); const preModal = require('../modal/pre');
const postModal = require('../modal/post'); const postModal = require('../modal/post');
const changelogs = fs.readdirSync('./json/changelogs').filter(file => file.endsWith('.json')); const changelogs = fs.readdirSync(path.join(__dirname, '../../', '/json/changelogs')).filter(file => file.endsWith('.json'));
module.exports = () => { module.exports = () => {
if (window.kade.modal) {return;} if (window.kade.modal) {return;}

Loading…
Cancel
Save