@quilted/create 0.1.15 → 0.1.16

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @quilted/create
2
2
 
3
+ ## 0.1.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`910c7dbe`](https://github.com/lemonmade/quilt/commit/910c7dbe0ba5ad9b348c77e045faf13ba4b94219) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix prettier standalone usage
8
+
3
9
  ## 0.1.15
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
+
5
+ function getDefaultExportFromCjs (x) {
6
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
+ }
8
+
9
+ exports.commonjsGlobal = commonjsGlobal;
10
+ exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
@@ -146,13 +146,18 @@ async function format(content, {
146
146
  }) {
147
147
  const [{
148
148
  format
149
- }] = await Promise.all([Promise.resolve().then(function () { return require('./standalone.cjs'); }).then(function (n) { return n.standalone; })]);
149
+ }, {
150
+ default: babel
151
+ }, {
152
+ default: yaml
153
+ }] = await Promise.all([Promise.resolve().then(function () { return require('./standalone.cjs'); }).then(function (n) { return n.standalone; }), Promise.resolve().then(function () { return require('./parser-babel.cjs'); }).then(function (n) { return n.parserBabel; }), Promise.resolve().then(function () { return require('./parser-yaml.cjs'); }).then(function (n) { return n.parserYaml; })]);
150
154
  return format(content, {
151
155
  arrowParens: 'always',
152
156
  bracketSpacing: false,
153
157
  singleQuote: true,
154
158
  trailingComma: 'all',
155
- parser
159
+ parser,
160
+ plugins: [babel, yaml]
156
161
  });
157
162
  }
158
163