Skip to content

Commit

Permalink
WIP: other pnpm script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetetot committed Dec 17, 2024
1 parent 7e734be commit 8fa0f00
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 21 deletions.
2 changes: 1 addition & 1 deletion api/scripts/generate-cron.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const cronContent = {

if (process.env.CACHE_RELOAD_TIME) {
const cacheReloadJob = {
command: `${process.env.CACHE_RELOAD_TIME} npm run cache:refresh`,
command: `${process.env.CACHE_RELOAD_TIME} pnpm run cache:refresh`,
};
if (process.env.CACHE_RELOAD_CONTAINER_SIZE) {
cacheReloadJob.size = process.env.CACHE_RELOAD_CONTAINER_SIZE;
Expand Down
6 changes: 3 additions & 3 deletions certif/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ module.exports = function (defaults) {
},
'@embroider/macros': {
setConfig: {
'@ember-data/store': {
polyfillUUID: true,
},
'ember-qunit': {
theme: 'ember',
},
},
},
emberData: {
polyfillUUID: true,
},
});

// Use `app.import` to add additional libraries to the generated
Expand Down
10 changes: 5 additions & 5 deletions high-level-tests/e2e/cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands';
import 'cypress-axe';
import "./commands";
import "cypress-axe";

// Alternatively you can use CommonJS syntax:
// require('./commands')

beforeEach(() => {
cy.exec('npm run db:empty');
cy.exec("pnpm run db:empty");

cy.window().then((win) => {
win.sessionStorage.clear();
});

cy.on('uncaught:exception', (err) => {
cy.on("uncaught:exception", (err) => {
if (
err.message.includes(
'You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added.'
"You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added."
)
) {
return false;
Expand Down
8 changes: 2 additions & 6 deletions junior/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ module.exports = function (defaults) {
'ember-cli-babel': {
includePolyfill: true,
},
'@embroider/macros': {
setConfig: {
'@ember-data/store': {
polyfillUUID: true,
},
},
emberData: {
polyfillUUID: true
},
});

Expand Down
8 changes: 2 additions & 6 deletions orga/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ module.exports = function (defaults) {
babel: {
plugins: [require.resolve('ember-auto-import/babel-plugin')],
},
'@embroider/macros': {
setConfig: {
'@ember-data/store': {
polyfillUUID: true,
},
},
emberData: {
polyfillUUID: true,
},
});

Expand Down

0 comments on commit 8fa0f00

Please sign in to comment.