shinkansen-engine 2.1.178 → 2.1.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/husky.mjs +16 -0
  2. package/package.json +53 -53
package/husky.mjs ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+
3
+ // @ts-ignore
4
+ Promise.resolve(import('husky'))
5
+ .then(({ default: husky }) => { husky() })
6
+ .catch((e) => {
7
+ if (e instanceof Error) {
8
+ if ('code' in e) {
9
+ const { code } = e
10
+ if (code === 'ERR_MODULE_NOT_FOUND') return
11
+ }
12
+
13
+ const { message } = e
14
+ if (message) console.error(`💥 ${message}`)
15
+ }
16
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shinkansen-engine",
3
- "version": "2.1.178",
3
+ "version": "2.1.179",
4
4
  "description": "Shinkansen Engine",
5
5
  "keywords": [
6
6
  "Shinkansen",
@@ -40,12 +40,12 @@
40
40
  "nvm": "bash nvm.sh",
41
41
  "prebuild": "npm run nvm",
42
42
  "prelint": "npm run nvm",
43
- "prepare": "husky",
43
+ "prepare": "node husky.mjs",
44
44
  "prestorybook": "npm run build && npm run prettier && npm run transform",
45
45
  "pretest": "npm run nvm",
46
46
  "prettier": "prettier src/sass/**/*.scss .storybook --write",
47
47
  "storybook": "storybook dev -p 6010",
48
- "test": "npm run test:mocha && npm run test:jest",
48
+ "test": "npm run test:mocha # && npm run test:jest",
49
49
  "test:jest": "cross-env NODE_ENV=test jest",
50
50
  "test:mocha": "cross-env NODE_ENV=test mocha test --recursive",
51
51
  "transform": "cross-env DEBUG=shinkansen-engine* .storybook/transform.sh",
@@ -55,75 +55,75 @@
55
55
  "debug": "^4.4.3"
56
56
  },
57
57
  "devDependencies": {
58
- "@babel/core": "^7.28.5",
59
- "@babel/eslint-parser": "^7.28.5",
60
- "@babel/plugin-syntax-import-attributes": "^7.27.1",
61
- "@babel/preset-env": "^7.28.5",
62
- "@babel/preset-react": "^7.28.5",
63
- "@babel/register": "^7.28.3",
58
+ "@babel/core": "7.29.7",
59
+ "@babel/eslint-parser": "7.29.7",
60
+ "@babel/plugin-syntax-import-attributes": "7.29.7",
61
+ "@babel/preset-env": "7.29.7",
62
+ "@babel/preset-react": "7.29.7",
63
+ "@babel/register": "7.29.7",
64
64
  "@modernpoacher/design-system": "2.0.17",
65
65
  "@sequencemedia/eslint-config-standard": "^0.2.107",
66
66
  "@sequencemedia/eslint-config-typescript": "^0.1.182",
67
- "@storybook/addon-docs": "^10.1.2",
68
- "@storybook/addon-links": "^10.1.2",
69
- "@storybook/addon-webpack5-compiler-babel": "^4.0.0",
70
- "@storybook/react-webpack5": "^10.1.2",
71
- "@testing-library/jest-dom": "^6.9.1",
72
- "@testing-library/react": "^16.3.0",
67
+ "@storybook/addon-docs": "^10.6.0",
68
+ "@storybook/addon-links": "^10.6.0",
69
+ "@storybook/addon-webpack5-compiler-babel": "^4.0.1",
70
+ "@storybook/react-webpack5": "^10.6.0",
71
+ "@testing-library/jest-dom": "^7.0.1",
72
+ "@testing-library/react": "^16.3.3",
73
73
  "@types/babel__register": "^7.17.3",
74
74
  "@types/chai": "^5.2.3",
75
- "@types/debug": "^4.1.12",
75
+ "@types/debug": "^4.1.13",
76
76
  "@types/jest": "^30.0.0",
77
77
  "@types/prop-types": "^15.7.15",
78
- "@types/react": "^19.2.7",
79
- "@types/react-dom": "^19.2.3",
80
- "@typescript-eslint/eslint-plugin": "^8.48.0",
81
- "@typescript-eslint/parser": "^8.48.0",
82
- "autoprefixer": "^10.4.22",
83
- "chai": "^6.2.1",
78
+ "@types/react": "^19.2.18",
79
+ "@types/react-dom": "^19.2.7",
80
+ "@typescript-eslint/eslint-plugin": "^8.69.0",
81
+ "@typescript-eslint/parser": "^8.69.0",
82
+ "autoprefixer": "^10.5.5",
83
+ "chai": "^6.2.2",
84
84
  "clean-webpack-plugin": "^4.0.0",
85
- "core-js": "^3.47.0",
85
+ "core-js": "^3.50.0",
86
86
  "cross-env": "^10.1.0",
87
87
  "eslint": "9.38.0",
88
88
  "eslint-plugin-react": "^7.37.5",
89
- "eslint-plugin-storybook": "^10.1.2",
90
- "globals": "^16.5.0",
89
+ "eslint-plugin-storybook": "^10.6.0",
90
+ "globals": "^17.12.0",
91
91
  "husky": "^9.1.7",
92
- "jest": "^30.2.0",
93
- "jest-environment-jsdom": "^30.2.0",
94
- "mini-css-extract-plugin": "^2.9.4",
95
- "mocha": "^11.7.5",
92
+ "jest": "^30.5.1",
93
+ "jest-environment-jsdom": "^30.5.1",
94
+ "mini-css-extract-plugin": "^2.10.2",
95
+ "mocha": "^12.0.0",
96
96
  "perfectionist": "^2.4.0",
97
- "postcss": "^8.5.6",
98
- "postcss-discard-comments": "^7.0.5",
99
- "postcss-discard-empty": "^7.0.1",
100
- "postcss-import": "^16.1.1",
101
- "postcss-loader": "^8.2.0",
97
+ "postcss": "^8.5.28",
98
+ "postcss-discard-comments": "^9.0.2",
99
+ "postcss-discard-empty": "^9.0.2",
100
+ "postcss-import": "^17.0.0",
101
+ "postcss-loader": "^8.2.1",
102
102
  "postcss-map": "^0.11.0",
103
- "prettier": "^3.7.2",
103
+ "prettier": "^3.9.6",
104
104
  "prop-types": "^15.8.1",
105
- "react": "^19.2.0",
106
- "react-component-snapshot": "^0.0.167",
107
- "react-dom": "^19.2.0",
108
- "react-router": "^7.9.6",
105
+ "react": "^19.2.8",
106
+ "react-component-snapshot": "^0.0.168",
107
+ "react-dom": "^19.2.8",
108
+ "react-router": "^8.3.1",
109
109
  "remove-files-webpack-plugin": "^1.5.0",
110
- "sass": "^1.94.2",
111
- "sass-loader": "^16.0.6",
110
+ "sass": "^1.104.0",
111
+ "sass-loader": "^17.0.1",
112
112
  "shinkansen-cogs": "2.1.152",
113
- "shinkansen-gears": "2.1.121",
114
- "shinkansen-pantograph": "1.5.177",
115
- "shinkansen-pinion": "2.1.162",
113
+ "shinkansen-gears": "2.1.122",
114
+ "shinkansen-pantograph": "1.5.178",
115
+ "shinkansen-pinion": "2.1.163",
116
116
  "shinkansen-rails": "1.1.130",
117
117
  "shinkansen-signals": "1.2.129",
118
- "shinkansen-sprockets": "2.1.150",
119
- "shinkansen-transmission": "2.5.95",
120
- "sinon": "^21.0.0",
121
- "storybook": "^10.1.2",
122
- "stylelint": "^16.26.1",
123
- "stylelint-config-recommended-scss": "^16.0.2",
124
- "stylelint-scss": "^6.12.1",
125
- "webpack": "^5.103.0",
126
- "webpack-cli": "^6.0.1"
118
+ "shinkansen-sprockets": "2.1.151",
119
+ "shinkansen-transmission": "2.5.96",
120
+ "sinon": "^22.1.0",
121
+ "storybook": "^10.6.0",
122
+ "stylelint": "^17.15.0",
123
+ "stylelint-config-recommended-scss": "^17.0.1",
124
+ "stylelint-scss": "^7.2.0",
125
+ "webpack": "^5.110.3",
126
+ "webpack-cli": "^7.2.3"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "shinkansen-cogs": "2.1.x",