Skip to content

Commit f337efe

Browse files
committed
logs!
1 parent e049b23 commit f337efe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

postinstall.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ move(getMovePaths('webpack.config.js'), log);
55
move(getMovePaths('.babelrc'), log);
66
move(getMovePaths('tns'), log);
77

8+
console.log('listing files');
9+
fs.readdirSync(testFolder).forEach(file => {
10+
console.log(file);
11+
})
12+
813
symlinkFromTns('package.json', 'file');
914
symlinkFromTns('package-lock.json', 'file');
1015
symlinkFromTns('node-modules', 'dir');
@@ -27,12 +32,14 @@ function log(err) {
2732
}
2833

2934
function symlinkFromTns(file, type) {
35+
console.log('linking ', path.join(__dirname, '..', '..', file), path.join(__dirname, '..', '..', 'tns', file));
36+
3037
if (fs.existsSync(path.join(__dirname, '..', '..', 'tns', file))) {
3138
fs.unlinkSync(path.join(__dirname, '..', '..', 'tns', file));
3239
}
3340
fs.symlinkSync(
34-
path.join(__dirname, '..', '..', 'tns', file),
3541
path.join(__dirname, '..', '..', file),
42+
path.join(__dirname, '..', '..', 'tns', file),
3643
type);
3744
}
3845

0 commit comments

Comments
 (0)