Skip to content

Commit

Permalink
modifica .eslintrc.js e package.json para atualização do volto (https…
Browse files Browse the repository at this point in the history
  • Loading branch information
samoel-silva committed Nov 30, 2024
1 parent 282f2fa commit 9324f2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const fs = require('fs');
const projectRootPath = __dirname;
const AddonConfigurationRegistry = require('@plone/registry/src/addon-registry');
const { AddonRegistry } = require('@plone/registry/addon-registry');

let coreLocation;
if (fs.existsSync(`${projectRootPath}/core`))
coreLocation = `${projectRootPath}/core`;
else if (fs.existsSync(`${projectRootPath}/../../core`))
coreLocation = `${projectRootPath}/../../core`;

const registry = new AddonConfigurationRegistry(
const { registry } = AddonRegistry.init(
`${coreLocation}/packages/volto`,
);

Expand All @@ -30,9 +30,8 @@ module.exports = {
['@plone/volto', `${coreLocation}/packages/volto/src`],
[
'@plone/volto-slate',
`${coreLocation}/core/packages/volto-slate/src`,
`${coreLocation}/volto-slate/src`,
],
['@plone/registry', `${coreLocation}/packages/registry/src`],
[
'portalbrasil-intranet',
'./packages/portalbrasil-intranet/src',
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"release-major-alpha": "pnpm --filter portalbrasil-intranet release-major-alpha",
"release-alpha": "pnpm --filter portalbrasil-intranet release-alpha",
"storybook": "VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto storybook dev -p 6006 -c $(pwd)/.storybook",
"build-storybook": "VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto build-storybook -c $(pwd)/.storybook"
"build-storybook": "VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto storybook build -c $(pwd)/.storybook"
},
"dependencies": {
"@plone/volto": "workspace:*",
Expand Down

0 comments on commit 9324f2e

Please sign in to comment.