Skip to content

Commit

Permalink
feat: update utils to v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed Nov 28, 2022
1 parent 47ebfe0 commit 42007b5
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 698 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"license": "MIT",
"homepage": "https://sandworm.dev",
"dependencies": {
"sandworm-utils": "1.7.0"
"sandworm-utils": "1.9.0"
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
Expand Down
9 changes: 5 additions & 4 deletions teardown/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const path = require('path');
const {
recorder: {stopRecordingSandwormActivity, getRecordedActivity},
files: {loadDependencies, loadConfig, writePermissions, loadPermissions, SANDWORM_PERMISSION_FILE_NAME},
files: {loadConfig, writePermissions, loadPermissions, SANDWORM_PERMISSION_FILE_NAME},
permissions: {getPermissionsFromActivity, getPackagePermissions, comparePermissions},
logger,
graph,
} = require('sandworm-utils');

const appPath = process.env.SANDWORM_APP_PATH || path.join(__dirname, '..', '..', '..');
Expand All @@ -15,16 +16,16 @@ module.exports = async () => {

await stopRecordingSandwormActivity();

const {devDependencies, prodDependencies} = await loadDependencies(appPath);
const {devDependencies, prodDependencies} = await graph(appPath);
const ignoredModules =
config && Array.isArray(config.ignoredModules) ? config.ignoredModules : [];
const permissions = getPermissionsFromActivity(activity);

const currentPermissions = loadPermissions(appPath);
const newPermissions = getPackagePermissions({
permissions,
devDependencies,
prodDependencies,
devDependencies: devDependencies.map(({name}) => name),
prodDependencies: prodDependencies.map(({name}) => name),
ignoredModules,
});

Expand Down
Loading

0 comments on commit 42007b5

Please sign in to comment.