Skip to content

Commit 6b436cd

Browse files
Release 3.0.1 (#30)
* prepare next dev version * Make most visyn entry settings optional * Pin @swc/core to 1.3.37 to avoid entered unreachable code: auto_accessor pass should remove this * Disable cypress/unsafe-to-chain-command rule * prepare release 3.0.1 --------- Co-authored-by: Michael Puehringer <[email protected]>
1 parent 43d8dee commit 6b436cd

File tree

6 files changed

+368
-338
lines changed

6 files changed

+368
-338
lines changed

config/eslintrc.template.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ module.exports = ({ tsconfigRootDir }) => ({
8888
{
8989
files: ['cypress/**/*'],
9090
extends: ['plugin:cypress/recommended', 'plugin:chai-friendly/recommended'],
91+
rules: {
92+
'cypress/unsafe-to-chain-command': 'warn',
93+
},
9194
plugins: ['cypress', 'chai-friendly'],
9295
},
9396
{

config/webpack.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ module.exports = (webpackEnv, argv) => {
113113
* entries: {
114114
* [chunkName: string]: {
115115
* js: string;
116-
* html: string;
117-
* template: string;
118-
* excludeChunks: string[];
116+
* html?: string;
117+
* template?: string;
118+
* excludeChunks?: string[];
119119
* scss?: string;
120120
* };
121121
* };
@@ -634,8 +634,8 @@ module.exports = (webpackEnv, argv) => {
634634
...Object.entries(entries).map(
635635
([chunkName, entry]) => new HtmlWebpackPlugin({
636636
inject: true,
637-
template: path.join(defaultAppPath, entry.template),
638-
filename: entry.html,
637+
template: entry.template ? path.join(defaultAppPath, entry.template) : 'auto',
638+
filename: entry.html || `${chunkName}.html`,
639639
title: libName,
640640
// By default, exclude all other chunks
641641
excludeChunks: entry.excludeChunks || Object.keys(entries).filter((entryKey) => entryKey !== chunkName),

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visyn_scripts",
33
"description": "",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"author": {
66
"name": "datavisyn GmbH",
77
"email": "[email protected]",
@@ -34,7 +34,7 @@
3434
"dependencies": {
3535
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
3636
"@svgr/webpack": "^5.5.0",
37-
"@swc/core": "~1.3.35",
37+
"@swc/core": "1.3.37",
3838
"@swc/jest": "~0.2.24",
3939
"@types/jest": "~27.4.1",
4040
"@types/node": "^17.0.24",

tests/standalone.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ describe('standalone', () => {
2323
// Install dependencies
2424
if (!fs.existsSync(resolve(templateDir, 'node_modules'))) {
2525
console.log('Installing local dependencies in the template folder');
26+
// Clear the yarn.lock to ensure it is found as module, but completely reinstalls.
27+
fs.writeFileSync(resolve(templateDir, 'yarn.lock'), '');
2628
execSync('yarn install --no-immutable --inline-builds', {
2729
cwd: templateDir,
2830
stdio: 'inherit',

0 commit comments

Comments
 (0)