env.notionRequire

This commit is contained in:
dragonwocky 2021-11-07 18:48:38 +11:00
parent 0aabc67774
commit bf3948f9c5
4 changed files with 10 additions and 4 deletions

View File

@ -5,6 +5,7 @@
*/ */
'use strict'; 'use strict';
module.exports = {};
/** /**
* environment-specific methods and constants * environment-specific methods and constants
@ -12,7 +13,6 @@
*/ */
const env = require('../env/env.cjs'); const env = require('../env/env.cjs');
module.exports = {};
/** /**
* the environment/platform name code is currently being executed in * the environment/platform name code is currently being executed in
@ -45,3 +45,9 @@ module.exports.focusNotion = env.focusNotion;
* @type {function} * @type {function}
*/ */
module.exports.reload = env.reload; module.exports.reload = env.reload;
/**
* require() notion app files
* @param {string} path - path from the root of notion/resources/app/ e.g. main/createWindow.js
*/
module.exports.notionRequire = env.notionRequire;

View File

@ -5,6 +5,7 @@
*/ */
'use strict'; 'use strict';
module.exports = {};
/** /**
* helpers for formatting or parsing text * helpers for formatting or parsing text
@ -12,7 +13,6 @@
*/ */
const fs = require('notion-enhancer/api/fs.cjs'); const fs = require('notion-enhancer/api/fs.cjs');
module.exports = {};
/** /**
* transform a heading into a slug (a lowercase alphanumeric string separated by dashes), * transform a heading into a slug (a lowercase alphanumeric string separated by dashes),

View File

@ -5,6 +5,7 @@
*/ */
'use strict'; 'use strict';
module.exports = {};
/** /**
* environment-specific file reading * environment-specific file reading
@ -12,7 +13,6 @@
*/ */
const fs = require('../env/fs.cjs'); const fs = require('../env/fs.cjs');
module.exports = {};
/** /**
* transform a path relative to the enhancer root directory into an absolute path * transform a path relative to the enhancer root directory into an absolute path

View File

@ -5,6 +5,7 @@
*/ */
'use strict'; 'use strict';
module.exports = {};
/** /**
* environment-specific data persistence * environment-specific data persistence
@ -12,7 +13,6 @@
*/ */
const storage = require('../env/storage.cjs'); const storage = require('../env/storage.cjs');
module.exports = {};
/** /**
* get persisted data * get persisted data