Explorar o código

chore: add final LF in package.json

...because `yarn version` ignores our editorconfig
tophf %!s(int64=2) %!d(string=hai) anos
pai
achega
5a4d733780
Modificáronse 3 ficheiros con 2 adicións e 5 borrados
  1. 0 3
      .editorconfig
  2. 1 1
      gulpfile.js
  3. 1 1
      package.json

+ 0 - 3
.editorconfig

@@ -8,6 +8,3 @@ charset = utf-8
 trim_trailing_whitespace = true
 insert_final_newline = true
 quote_type = single
-
-[package.json]
-insert_final_newline = false

+ 1 - 1
gulpfile.js

@@ -112,7 +112,7 @@ async function bump() {
   } else {
     pkg.beta = (+pkg.beta || 0) + 1;
   }
-  await fs.writeFile('package.json', JSON.stringify(pkg, null, 2), 'utf8');
+  await fs.writeFile('package.json', JSON.stringify(pkg, null, 2) + '\n', 'utf8');
   if (process.argv.includes('--commit')) {
     const version = `v${getVersion()}`;
     spawn.sync('git', ['commit', '-am', version]);

+ 1 - 1
package.json

@@ -116,4 +116,4 @@
     "testEnvironment": "./test/mock/env.js"
   },
   "beta": 10
-}
+}