Skip to content

Commit 2d382e9

Browse files
committed
Update node version for examples and make them work again
1 parent 338170a commit 2d382e9

File tree

3 files changed

+799
-455
lines changed

3 files changed

+799
-455
lines changed

examples/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12.16.0
1+
v18.17.1

examples/package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
},
2323
"scripts": {
2424
"clean": "rimraf dist bundle-report.html",
25-
"views": "gulp views $npm_package_config_tools",
26-
"scripts": "gulp scripts $npm_package_config_tools",
27-
"styles": "gulp styles $npm_package_config_tools",
28-
"start": "gulp start $npm_package_config_tools",
29-
"build": "yarn run clean && gulp build $npm_package_config_tools",
30-
"build:prod": "NODE_ENV=production yarn run build",
25+
"views": "NODE_OPTIONS=--openssl-legacy-provider gulp views $npm_package_config_tools",
26+
"scripts": "NODE_OPTIONS=--openssl-legacy-provider gulp scripts $npm_package_config_tools",
27+
"styles": "NODE_OPTIONS=--openssl-legacy-provider gulp styles $npm_package_config_tools",
28+
"start": "NODE_OPTIONS=--openssl-legacy-provider gulp start $npm_package_config_tools",
29+
"build": "NODE_OPTIONS=--openssl-legacy-provider yarn run clean && gulp build $npm_package_config_tools",
30+
"build:prod": "NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production yarn run build",
3131
"lint:scss": "stylelint './src/**/*.scss'",
3232
"prettier:scss": "prettier-stylelint './src/**/*.scss' --write -q",
3333
"lint:js": "eslint './src/**/*.js' './tools/**/*.js' --max-warnings 0",
3434
"prettier:js": "yarn run lint:js --fix",
35-
"prepublish": "yarn run build"
35+
"prepublish": "NODE_OPTIONS=--openssl-legacy-provider yarn run build"
3636
},
3737
"dependencies": {
3838
"core-js": "^3.6.5",
@@ -67,5 +67,8 @@
6767
"stylelint-config-shopify": "^7.4.0",
6868
"webpack": "^4.44.2",
6969
"webpack-bundle-analyzer": "^3.9.0"
70+
},
71+
"resolutions": {
72+
"node-sass": "8.0.0"
7073
}
7174
}

0 commit comments

Comments
 (0)