Skip to content

Commit

Permalink
remove direct dependency on fs-extra in post-install
Browse files Browse the repository at this point in the history
  • Loading branch information
viqueen committed Jun 1, 2022
1 parent f377e3a commit 335174b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atlassian-devbox",
"version": "1.0.1",
"version": "1.0.2",
"description": "atlassian devbox",
"preferGlobal": true,
"bin": {
Expand Down
12 changes: 8 additions & 4 deletions post-install.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
const fse = require('fs-extra');
const fs = require('fs');
const os = require('os');
const path = require('path');

fse.copySync(
path.resolve(process.cwd(), '.atlassian-devbox'),
path.resolve(os.homedir(), '.atlassian-devbox')
const source = path.resolve(process.cwd(), '.atlassian-devbox');
const target = path.resolve(os.homedir(), '.atlassian-devbox');

fs.mkdirSync(target, { recursive: true });
fs.copyFileSync(
path.resolve(source, 'settings.xml'),
path.resolve(target, 'settings.xml')
);

0 comments on commit 335174b

Please sign in to comment.