@lipemat/js-boilerplate 10.11.1 → 10.11.3

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.
@@ -145,6 +145,7 @@ module.exports = {
145
145
  {
146
146
  loader: '@teamsupercell/typings-for-css-modules-loader',
147
147
  options: {
148
+ banner: '// Autogenerated by typings-for-css-modules-loader.',
148
149
  disableLocalsExport: true,
149
150
  prettierConfigFile: path.resolve( __dirname, '../helpers/.prettierrc.json' ),
150
151
  },
@@ -30,7 +30,12 @@ function processCss(node) {
30
30
  indent(node, nodeDepth, 'before');
31
31
  indent(node, nodeDepth, 'after');
32
32
  if (0 === nodeDepth) {
33
- node.raws.before += '\n';
33
+ if ('undefined' === typeof node.raws.before) {
34
+ node.raws.before = '\n\n';
35
+ }
36
+ else {
37
+ node.raws.before += '\n';
38
+ }
34
39
  }
35
40
  }
36
41
  const plugin = {
@@ -46,7 +46,11 @@ function processCss( node: ChildNode ) {
46
46
  indent( node, nodeDepth, 'after' );
47
47
 
48
48
  if ( 0 === nodeDepth ) {
49
- node.raws.before += '\n';
49
+ if ( 'undefined' === typeof node.raws.before ) {
50
+ node.raws.before = '\n\n';
51
+ } else {
52
+ node.raws.before += '\n';
53
+ }
50
54
  }
51
55
  }
52
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lipemat/js-boilerplate",
3
- "version": "10.11.1",
3
+ "version": "10.11.3",
4
4
  "description": "Dependencies and scripts for a no config JavaScript app",
5
5
  "author": "Mat Lipe",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@ Validate CSS modules using .d.ts definition files for each CSS module.
8
8
  - Generates .d.ts files for each CSS module.
9
9
  - Runs \`dist\` to validate compilation using TS.
10
10
 
11
- @notice PHPStorm will not support click through to CSS modules if the .pcss.d.ts files are present so this script should only be run in CI.
11
+ @deprecated Not needed anymore now PHPStorm supports .d.ts files for CSS modules.
12
12
 
13
13
  @see .github/workflows/pull-request-lint-action.yml
14
14