Skip to content

Commit

Permalink
1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jfactory-es committed Oct 27, 2024
1 parent 0613477 commit b9d3c76
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
"scripts": {
"build": "node scripts/build/build.js",
"build-test-export": "node scripts/build/build.js rollup.test_export.config.cjs",
"test:source": "JFT_MODE=SOURCE npx vitest run",
"test:es:prod": "JFT_MODE=ES_PROD npx vitest run",
"test:es:dev": "JFT_MODE=ES_DEVEL npx vitest run",
"test:umd:prod": "JFT_MODE=UMD_PROD npx vitest run",
"test:umd:dev": "JFT_MODE=UMD_DEVEL npx vitest run",
"watch:source": "JFT_MODE=SOURCE npx vitest",
"watch:source:ui": "JFT_MODE=SOURCE npx vitest --ui"
"test:source": "cross-env JFT_MODE=SOURCE npx vitest run",
"test:es:prod": "cross-env JFT_MODE=ES_PROD npx vitest run",
"test:es:dev": "cross-env JFT_MODE=ES_DEVEL npx vitest run",
"test:umd:prod": "cross-env JFT_MODE=UMD_PROD npx vitest run",
"test:umd:dev": "cross-env JFT_MODE=UMD_DEVEL npx vitest run",
"watch:source": "cross-env JFT_MODE=SOURCE npx vitest",
"watch:source:ui": "cross-env JFT_MODE=SOURCE npx vitest --ui"
},
"peerDependencies": {
"jquery": "^3",
Expand Down
10 changes: 5 additions & 5 deletions scripts/build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ async function run(filename = 'rollup.jfactory.config.cjs') {
console.log(`Compilation completed in ${compilationTime} seconds`);

if (envCheckResult.warn.length) {
envCheckResult.warn.forEach(value => {
for (const value of envCheckResult.warn) {
console.warn(colors.red(`Env warning: ${value}`));
});
}
}
if (envCheckResult.error.length) {
envCheckResult.error.forEach(value => {
for (const value of envCheckResult.error) {
console.error(colors.red(`Env errors: ${value}`));
});
}
process.exit(1);
}
if (warnings.count) {
console.error(colors.red(`Compilation warnings: ${warnings.count}`));
console.warn(colors.red(`Compilation warnings: ${warnings.count}`));
}
})

Expand Down

0 comments on commit b9d3c76

Please sign in to comment.