@tsrx/prettier-plugin 0.3.80 → 0.3.81

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsrx/prettier-plugin",
3
- "version": "0.3.80",
3
+ "version": "0.3.81",
4
4
  "description": "Ripple plugin for Prettier",
5
5
  "type": "module",
6
6
  "module": "src/index.js",
@@ -27,7 +27,7 @@
27
27
  "prettier": "^3.8.3"
28
28
  },
29
29
  "dependencies": {
30
- "@tsrx/core": "0.1.28"
30
+ "@tsrx/core": "0.1.29"
31
31
  },
32
32
  "files": [
33
33
  "src/"
package/src/index.js CHANGED
@@ -55,11 +55,11 @@ export const parsers = {
55
55
  astFormat: 'ripple-ast',
56
56
  /**
57
57
  * @param {string} text
58
- * @param {ParserOptions<AST.Node | AST.CSS.StyleSheet>} _options
58
+ * @param {ParserOptions<AST.Node | AST.CSS.StyleSheet>} options
59
59
  * @returns {AST.Program}
60
60
  */
61
- parse(text, _options) {
62
- return parseModule(text);
61
+ parse(text, options) {
62
+ return parseModule(text, options.filepath || 'PrettierPlugin.tsrx');
63
63
  },
64
64
 
65
65
  /**