Skip to content

Commit 1a11a4a

Browse files
committed
feat: exposed functions to module.exports
- Refactor Simplify CoCreate configuration and update package.json to point to new command index file - Removed unnecessary nested "config" object from the CoCreate configuration file - Package.json updated to point to the new command index.js file - Created new index.js file inside src/commands folder, exported "config" object using CommonJS module.exports syntax
1 parent 63c8567 commit 1a11a4a

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

CoCreate.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
module.exports = {
2-
"config": {
3-
"organization_id": "",
4-
"key": "",
5-
"host": ""
6-
},
2+
"organization_id": "",
3+
"key": "",
4+
"host": "",
75
"sources": [
86
{
97
"collection": "files",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"type": "GitHub Sponsors ❤",
5454
"url": "https://github.com/sponsors/CoCreate-app"
5555
},
56-
"main": "src/coc.js",
56+
"main": "src/commands/index.js",
5757
"bin": {
5858
"coc": "src/coc.js"
5959
},

src/commands/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const config = require('./config.js');
2+
3+
module.exports = { config }

0 commit comments

Comments
 (0)