@emulsify/core 2.4.2 → 2.5.1

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.
@@ -77,9 +77,14 @@ function getEntries(
77
77
  // Non-component or global SCSS entries.
78
78
  glob.sync(BaseScssMatcher).forEach((file) => {
79
79
  const filePath = file.split(`${srcDir}/`)[1];
80
- const filePathDist = filePath.split('/')[1]
81
- ? filePath.split('/')[1]
82
- : filePath.split('/')[0];
80
+ // Support multi-level folder structures.
81
+ let filePathDist = filePath.split('/')[0];
82
+ if (filePath.split('/')[1] && !filePath.split('/')[1].endsWith('.scss')) {
83
+ filePathDist = filePath.split('/')[1];
84
+ }
85
+ if (filePath.split('/')[2]) {
86
+ filePathDist = `${filePath.split('/')[1]}/${filePath.split('/')[2]}`;
87
+ }
83
88
  const newfilePath = fs.existsSync(path.resolve(projectDir, 'src'))
84
89
  ? `dist/global/${filePathDist.replace('.scss', '')}`
85
90
  : `dist/css/${filePathDist.replace('.scss', '')}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/core",
3
- "version": "2.4.2",
3
+ "version": "2.5.1",
4
4
  "description": "Bundled tooling for Storybook development + Webpack Build",
5
5
  "keywords": [
6
6
  "component library",
@@ -49,18 +49,18 @@
49
49
  "@babel/core": "^7.25.9",
50
50
  "@babel/eslint-parser": "^7.25.9",
51
51
  "@babel/preset-env": "^7.25.9",
52
- "@emulsify/cli": "^1.11.3",
53
- "@storybook/addon-a11y": "^8.4.2",
54
- "@storybook/addon-actions": "^8.4.2",
55
- "@storybook/addon-essentials": "^8.4.2",
56
- "@storybook/addon-links": "^8.4.2",
52
+ "@emulsify/cli": "^1.11.4",
53
+ "@storybook/addon-a11y": "^8.4.7",
54
+ "@storybook/addon-actions": "^8.4.7",
55
+ "@storybook/addon-essentials": "^8.4.7",
56
+ "@storybook/addon-links": "^8.4.7",
57
57
  "@storybook/addon-styling-webpack": "^1.0.1",
58
- "@storybook/addon-themes": "^8.4.2",
59
- "@storybook/html": "^8.4.2",
60
- "@storybook/html-webpack5": "^8.4.2",
61
- "@storybook/manager-api": "^8.4.2",
62
- "@storybook/preview-api": "^8.4.2",
63
- "@storybook/theming": "^8.4.2",
58
+ "@storybook/addon-themes": "^8.4.7",
59
+ "@storybook/html": "^8.4.5",
60
+ "@storybook/html-webpack5": "^8.4.7",
61
+ "@storybook/manager-api": "^8.4.7",
62
+ "@storybook/preview-api": "^8.4.7",
63
+ "@storybook/theming": "^8.4.7",
64
64
  "add-attributes-twig-extension": "^0.1.0",
65
65
  "autoprefixer": "^10.4.20",
66
66
  "babel-loader": "^9.2.1",
@@ -78,14 +78,14 @@
78
78
  "eslint-plugin-jest": "^28.9.0",
79
79
  "eslint-plugin-prettier": "^5.1.3",
80
80
  "eslint-plugin-security": "^3.0.1",
81
- "eslint-plugin-storybook": "^0.11.0",
81
+ "eslint-plugin-storybook": "^0.11.1",
82
82
  "eslint-webpack-plugin": "^4.1.0",
83
83
  "file-loader": "^6.2.0",
84
84
  "fs-extra": "^11.2.0",
85
85
  "glob": "^11.0.0",
86
86
  "graceful-fs": "^4.2.11",
87
87
  "html-webpack-plugin": "^5.6.3",
88
- "image-minimizer-webpack-plugin": "^4.1.0",
88
+ "image-minimizer-webpack-plugin": "^4.1.1",
89
89
  "imagemin": "^9.0.0",
90
90
  "imagemin-gifsicle": "^7.0.0",
91
91
  "imagemin-jpegtran": "^8.0.0",
@@ -99,19 +99,19 @@
99
99
  "normalize.css": "^8.0.1",
100
100
  "open-cli": "^8.0.0",
101
101
  "pa11y": "^8.0.0",
102
- "postcss": "^8.4.47",
102
+ "postcss": "^8.4.49",
103
103
  "postcss-loader": "^8.1.1",
104
104
  "postcss-scss": "^4.0.9",
105
105
  "ramda": "^0.30.1",
106
- "react": "^18.2.0",
107
- "react-dom": "^18.2.0",
106
+ "react": "^19.0.0",
107
+ "react-dom": "^19.0.0",
108
108
  "regenerator-runtime": "^0.14.1",
109
- "sass": "^1.80.6",
110
- "sass-loader": "^16.0.3",
111
- "storybook": "^8.4.2",
112
- "style-dictionary": "^4.1.4",
113
- "stylelint": "^16.10.0",
114
- "stylelint-config-standard-scss": "^13.1.0",
109
+ "sass": "^1.83.0",
110
+ "sass-loader": "^16.0.4",
111
+ "storybook": "^8.4.7",
112
+ "style-dictionary": "^4.3.0",
113
+ "stylelint": "^16.11.0",
114
+ "stylelint-config-standard-scss": "^14.0.0",
115
115
  "stylelint-prettier": "^5.0.0",
116
116
  "stylelint-selector-bem-pattern": "^4.0.1",
117
117
  "stylelint-webpack-plugin": "^5.0.1",
@@ -120,21 +120,21 @@
120
120
  "twig-drupal-filters": "^3.2.0",
121
121
  "twig-testing-library": "^1.2.0",
122
122
  "twigjs-loader": "^1.0.3",
123
- "webpack": "^5.96.1",
123
+ "webpack": "^5.97.1",
124
124
  "webpack-cli": "^5.1.4",
125
125
  "webpack-merge": "^6.0.1",
126
- "yaml": "^2.5.0"
126
+ "yaml": "^2.6.1"
127
127
  },
128
128
  "devDependencies": {
129
- "@commitlint/cli": "^19.5.0",
130
- "@commitlint/config-conventional": "^19.5.0",
129
+ "@commitlint/cli": "^19.6.0",
130
+ "@commitlint/config-conventional": "^19.6.0",
131
131
  "@semantic-release/changelog": "^6.0.2",
132
132
  "@semantic-release/commit-analyzer": "^13.0.0",
133
133
  "@semantic-release/git": "^10.0.1",
134
134
  "@semantic-release/github": "^11.0.1",
135
135
  "@semantic-release/release-notes-generator": "^14.0.0",
136
- "husky": "^9.1.6",
137
- "lint-staged": "^15.2.10",
136
+ "husky": "^9.1.7",
137
+ "lint-staged": "^15.2.11",
138
138
  "semantic-release": "^24.2.0"
139
139
  },
140
140
  "overrides": {