@emulsify/core 3.3.0 → 3.3.2

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.
@@ -18,4 +18,4 @@ jobs:
18
18
  # You can target a repository in a different organization
19
19
  # to the issue
20
20
  project-url: https://github.com/emulsify-ds/emulsify-core
21
- github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
21
+ github-token: ${{ secrets.GH_TOKEN }}
@@ -73,8 +73,10 @@ const pj = (...segs) => path.join(...segs.filter(Boolean));
73
73
  const distSubpathForBase = (absFile, type) => {
74
74
  const rel = path.relative(srcDir, absFile);
75
75
  const dir = path.dirname(rel);
76
- const name = path.basename(rel, '.' + type);
77
- return SDC ? pj(dir, name) : pj(dir, type, name);
76
+ const ext = path.extname(rel);
77
+ const name = path.basename(rel, ext);
78
+ const outTypeDir = type === 'css' ? 'css' : 'js';
79
+ return SDC ? pj(dir, name) : pj(dir, outTypeDir, name);
78
80
  };
79
81
 
80
82
  /**
@@ -27,13 +27,14 @@ const isDrupal = emulsifyConfig.project.platform === 'drupal';
27
27
  const ignored = ['**/dist/**'];
28
28
 
29
29
  // If it’s Drupal and there is no src/, also ignore components
30
- if (isDrupal && srcExists) {
30
+ if (isDrupal && !srcExists) {
31
31
  ignored.push('**/components/**');
32
32
  }
33
33
 
34
34
  export default merge(common, {
35
35
  mode: 'development',
36
36
  devtool: 'source-map',
37
+ watch: true,
37
38
  watchOptions: {
38
39
  ignored,
39
40
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/core",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "Bundled tooling for Storybook development + Webpack Build",
5
5
  "keywords": [
6
6
  "component library",