Skip to content

Commit 079b253

Browse files
author
ahmetkuslular
committed
Fix: voltran core files separated from each other
1 parent 1c89dd4 commit 079b253

File tree

5 files changed

+26
-19
lines changed

5 files changed

+26
-19
lines changed

config/string.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,19 @@ function replaceString() {
4343
replace: normalizeUrl(voltranConfig.preview || path.resolve(__dirname, './emptyModule.js')),
4444
flags: 'g'
4545
},
46+
{
47+
search: '@voltran/server',
48+
replace: normalizeUrl(path.resolve(__dirname, '../src/server')),
49+
flags: 'g'
50+
},
4651
{
4752
search: '@voltran/core',
48-
replace: normalizeUrl(path.resolve(__dirname, '../src/index')),
53+
replace: normalizeUrl(path.resolve(__dirname, '../src/core')),
4954
flags: 'g'
5055
},
5156
{
52-
search: '@voltran/server',
53-
replace: normalizeUrl(path.resolve(__dirname, '../src/server')),
57+
search: '@voltran',
58+
replace: normalizeUrl(path.resolve(__dirname, '../src/index')),
5459
flags: 'g'
5560
},
5661
{

lib/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ function checkRequiredVariables(mergeConfigs) {
110110
}
111111

112112
export function cli(args) {
113+
console.log('SELAM');
113114
const argumentList = parseArgumentsIntoOptions(args);
114115
console.log(clc.blue(JSON.stringify(argumentList)));
115116
const voltranConfigs = argumentList.configFile ? getVoltranConfigs(argumentList.configFile) : {};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "voltranjs",
3-
"version": "1.2.0-beta.6",
3+
"version": "1.2.0-beta.7",
44
"main": "src/index.js",
55
"author": "Hepsiburada Technology Team",
66
"bin": {

src/core.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import apiService, {
2+
ClientApiManager,
3+
ServerApiManager,
4+
apiServiceMiddleware
5+
} from './universal/core/apiService';
6+
import requestDispatcher from './universal/utils/requestDispatcher';
7+
import useRequestDispatcher from './universal/hooks/useRequestDispatcher';
8+
9+
export {
10+
ClientApiManager,
11+
ServerApiManager,
12+
apiService,
13+
apiServiceMiddleware,
14+
requestDispatcher,
15+
useRequestDispatcher
16+
};

src/index.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
import voltran from './universal/partials/withBaseComponent';
2-
import apiService, {
3-
ClientApiManager,
4-
ServerApiManager,
5-
apiServiceMiddleware
6-
} from './universal/core/apiService';
7-
import requestDispatcher from './universal/utils/requestDispatcher';
8-
import useRequestDispatcher from './universal/hooks/useRequestDispatcher';
92

103
export default voltran;
11-
export {
12-
ClientApiManager,
13-
ServerApiManager,
14-
apiService,
15-
apiServiceMiddleware,
16-
requestDispatcher,
17-
useRequestDispatcher
18-
};

0 commit comments

Comments
 (0)