@tractorbeam/prettier-config 0.1.1 → 0.1.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @tractorbeam/prettier-config
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 91e3bdf: resolve issues, update dependencies
8
+ - 0f492e9: remove typescript to eliminate build step and improve downstream compatibility
9
+
10
+ ## 0.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - ff0f768: docs: add MIT license and metadata in package.json config
package/LICENSE CHANGED
@@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
+
package/main.cjs ADDED
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @type {import("prettier").Config}
3
+ */
4
+ module.exports = {
5
+ plugins: [
6
+ require.resolve("@ianvs/prettier-plugin-sort-imports"),
7
+ require.resolve("prettier-plugin-packagejson"),
8
+ require.resolve("prettier-plugin-tailwindcss"),
9
+ ],
10
+ importOrder: [
11
+ "^(@/env)$",
12
+ "",
13
+ "^(react/(.*)$)|^(react$)",
14
+ "^(next/(.*)$)|^(next$)",
15
+ "<THIRD_PARTY_MODULES>",
16
+ "",
17
+ "^types$",
18
+ "@tractorbeam/(.*)$",
19
+ "@/components/ui/(.*)$",
20
+ "^@/(.*)$",
21
+ "",
22
+ "^[./]",
23
+ ],
24
+ importOrderParserPlugins: ["typescript", "jsx"],
25
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tractorbeam/prettier-config",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Shared Prettier configuration for Tractorbeam projects",
5
5
  "keywords": [
6
6
  "tractorbeam",
@@ -22,25 +22,11 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "type": "module",
25
- "exports": {
26
- ".": {
27
- "types": "./dist/index.d.ts",
28
- "default": "./dist/index.js"
29
- }
30
- },
31
- "files": [
32
- "dist/**",
33
- "README.md"
34
- ],
25
+ "main": "./main.cjs",
35
26
  "dependencies": {
36
27
  "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
37
- "prettier-plugin-packagejson": "^2.5.19",
38
- "prettier-plugin-tailwindcss": "^0.6.14"
39
- },
40
- "devDependencies": {
41
- "prettier": "^3.5.3",
42
- "typescript": "^5.9.3",
43
- "@tractorbeam/typescript-config": "0.1.1"
28
+ "prettier-plugin-packagejson": "^2.5.20",
29
+ "prettier-plugin-tailwindcss": "^0.7.2"
44
30
  },
45
31
  "peerDependencies": {
46
32
  "prettier": ">=3.0.0"
@@ -48,11 +34,5 @@
48
34
  "publishConfig": {
49
35
  "access": "public",
50
36
  "provenance": true
51
- },
52
- "scripts": {
53
- "build": "tsc -p tsconfig.build.json",
54
- "clean": "rm -rf dist *.tsbuildinfo",
55
- "postinstall": "pnpm run build",
56
- "lint:types": "tsc --noEmit"
57
37
  }
58
38
  }
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import type { Config } from "prettier";
2
- declare const config: Config;
3
- export default config;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,QAAA,MAAM,MAAM,EAAE,MAsBb,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/dist/index.js DELETED
@@ -1,24 +0,0 @@
1
- const config = {
2
- plugins: [
3
- "@ianvs/prettier-plugin-sort-imports",
4
- "prettier-plugin-packagejson",
5
- "prettier-plugin-tailwindcss",
6
- ],
7
- importOrder: [
8
- "^(@/env)$",
9
- "",
10
- "^(react/(.*)$)|^(react$)",
11
- "^(next/(.*)$)|^(next$)",
12
- "<THIRD_PARTY_MODULES>",
13
- "",
14
- "^types$",
15
- "@tractorbeam/(.*)$",
16
- "@/components/ui/(.*)$",
17
- "^@/(.*)$",
18
- "",
19
- "^[./]",
20
- ],
21
- importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
22
- };
23
- export default config;
24
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAW;IACrB,OAAO,EAAE;QACP,qCAAqC;QACrC,6BAA6B;QAC7B,6BAA6B;KAC9B;IACD,WAAW,EAAE;QACX,WAAW;QACX,EAAE;QACF,0BAA0B;QAC1B,wBAAwB;QACxB,uBAAuB;QACvB,EAAE;QACF,SAAS;QACT,oBAAoB;QACpB,uBAAuB;QAEvB,UAAU;QACV,EAAE;QACF,OAAO;KACR;IACD,wBAAwB,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,mBAAmB,CAAC;CACrE,CAAC;AAEF,eAAe,MAAM,CAAC"}