@gurso/oxc-config 0.0.5 → 0.0.7

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/.gitlab-ci.yml CHANGED
@@ -50,4 +50,5 @@ publish:
50
50
  rules:
51
51
  - if: $CI_COMMIT_TAG =~ /^v(\d+\.){2}\d+$/
52
52
  script:
53
+ - npm run build
53
54
  - npm publish --access public
@@ -1,2 +1,2 @@
1
1
 
2
- ae8cff9092a7a89940a50a833eca28566345a77b {"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz","integrity":"sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==","time":1781896414389,"size":14170,"metadata":{"time":1781896414331,"url":"https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz","reqHeaders":{},"resHeaders":{"cache-control":"public, immutable, max-age=31557600","content-type":"application/octet-stream","date":"Fri, 19 Jun 2026 19:13:34 GMT","etag":"\"a1806b4be28f0bce287f51edb50fe540\"","last-modified":"Sat, 03 Jan 2026 07:37:54 GMT","vary":"Accept-Encoding"},"options":{"compress":true}}}
2
+ 46eb33dd4b74e14c8ac91ebfe7e8fe229a7a874e {"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz","integrity":"sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==","time":1781901289912,"size":14170,"metadata":{"time":1781901289856,"url":"https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz","reqHeaders":{},"resHeaders":{"cache-control":"public, immutable, max-age=31557600","content-type":"application/octet-stream","date":"Fri, 19 Jun 2026 20:34:49 GMT","etag":"\"a1806b4be28f0bce287f51edb50fe540\"","last-modified":"Sat, 03 Jan 2026 07:37:54 GMT","vary":"Accept-Encoding"},"options":{"compress":true}}}
@@ -1,2 +1,2 @@
1
1
 
2
- 21fafb0856cd2307484c70cf46f86826c4ddba21 {"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz","integrity":"sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==","time":1781896414710,"size":4515854,"metadata":{"time":1781896414342,"url":"https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz","reqHeaders":{},"resHeaders":{"cache-control":"public, immutable, max-age=31557600","content-type":"application/octet-stream","date":"Fri, 19 Jun 2026 19:13:34 GMT","etag":"\"0136d6b610a8ef0251f65aecb4c9fc24\"","last-modified":"Thu, 16 Apr 2026 23:38:31 GMT","vary":"Accept-Encoding"},"options":{"compress":true}}}
2
+ 631aae9ddc11fe0fbafc3117f9a8270808f2080f {"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz","integrity":"sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==","time":1781901290229,"size":4515854,"metadata":{"time":1781901289849,"url":"https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz","reqHeaders":{},"resHeaders":{"cache-control":"public, immutable, max-age=31557600","content-type":"application/octet-stream","date":"Fri, 19 Jun 2026 20:34:49 GMT","etag":"\"0136d6b610a8ef0251f65aecb4c9fc24\"","last-modified":"Thu, 16 Apr 2026 23:38:31 GMT","vary":"Accept-Encoding"},"options":{"compress":true}}}
@@ -1,2 +1,2 @@
1
1
 
2
- dd3a07b1e5ebee15f00fc83dfcfe31f54dc1979c {"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/oxfmt/-/oxfmt-0.55.0.tgz","integrity":"sha512-jSj2wCTakwgPMxkfiVZX0jf+nX+Nz6xlyAZjqNE0qXTFdCBPYlP6JAN+ODjmealw7DXBjOzYbdsqwBMAZnPZ6A==","time":1781896414598,"size":1871359,"metadata":{"time":1781896414339,"url":"https://registry.npmjs.org/oxfmt/-/oxfmt-0.55.0.tgz","reqHeaders":{},"resHeaders":{"cache-control":"public, immutable, max-age=31557600","content-type":"application/octet-stream","date":"Fri, 19 Jun 2026 19:13:34 GMT","etag":"\"954e1dbe238d44968602fd6cd22678ba\"","last-modified":"Mon, 15 Jun 2026 13:36:25 GMT","vary":"Accept-Encoding"},"options":{"compress":true}}}
2
+ 56e9a95a847910611ecc61dabd1cadbf62478c49 {"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/oxfmt/-/oxfmt-0.55.0.tgz","integrity":"sha512-jSj2wCTakwgPMxkfiVZX0jf+nX+Nz6xlyAZjqNE0qXTFdCBPYlP6JAN+ODjmealw7DXBjOzYbdsqwBMAZnPZ6A==","time":1781901290120,"size":1871359,"metadata":{"time":1781901289862,"url":"https://registry.npmjs.org/oxfmt/-/oxfmt-0.55.0.tgz","reqHeaders":{},"resHeaders":{"cache-control":"public, immutable, max-age=31557600","content-type":"application/octet-stream","date":"Fri, 19 Jun 2026 20:34:49 GMT","etag":"\"954e1dbe238d44968602fd6cd22678ba\"","last-modified":"Mon, 15 Jun 2026 13:36:25 GMT","vary":"Accept-Encoding"},"options":{"compress":true}}}
@@ -1,2 +1,2 @@
1
1
 
2
- 26cbf34b628d7dbcb301e1331520a52422488f5a {"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz","integrity":"sha512-MihqiPziJNoWy4MqNSV+jVA1g+07iQDjZiR0vaCaDoPgFEiJpCMsxamktzLV07cEeQsSJ04vQaU4CzCQwIvtDA==","time":1781896414579,"size":3283068,"metadata":{"time":1781896414349,"url":"https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz","reqHeaders":{},"resHeaders":{"cache-control":"public, must-revalidate, max-age=31557600","content-type":"application/octet-stream","date":"Fri, 19 Jun 2026 19:13:34 GMT","etag":"\"6944748219cd91165852c05d93fddb4b\"","last-modified":"Mon, 15 Jun 2026 13:36:14 GMT","vary":"Accept-Encoding"},"options":{"compress":true}}}
2
+ 86c7e1fa2b34872cfdf44b6e097dd99a3ca841b6 {"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz","integrity":"sha512-MihqiPziJNoWy4MqNSV+jVA1g+07iQDjZiR0vaCaDoPgFEiJpCMsxamktzLV07cEeQsSJ04vQaU4CzCQwIvtDA==","time":1781901290104,"size":3283068,"metadata":{"time":1781901289866,"url":"https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz","reqHeaders":{},"resHeaders":{"cache-control":"public, must-revalidate, max-age=31557600","content-type":"application/octet-stream","date":"Fri, 19 Jun 2026 20:34:49 GMT","etag":"\"6944748219cd91165852c05d93fddb4b\"","last-modified":"Mon, 15 Jun 2026 13:36:14 GMT","vary":"Accept-Encoding"},"options":{"compress":true}}}
@@ -7,8 +7,8 @@
7
7
  6 silly config load:file:/usr/local/etc/npmrc
8
8
  7 verbose title npm ci
9
9
  8 verbose argv "ci" "--prefer-offline"
10
- 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T19_13_33_934Z-
11
- 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T19_13_33_934Z-debug-0.log
10
+ 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_34_49_445Z-
11
+ 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_34_49_445Z-debug-0.log
12
12
  11 silly logfile done cleaning log files
13
13
  12 silly packumentCache heap:2248146944 maxSize:562036736 maxEntrySize:281018368
14
14
  13 silly packumentCache heap:2248146944 maxSize:562036736 maxEntrySize:281018368
@@ -38,7 +38,7 @@
38
38
  16 silly audit tinypool: [ '2.1.0' ],
39
39
  16 silly audit typescript: [ '6.0.3' ]
40
40
  16 silly audit }
41
- 17 http cache typescript@https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz 1ms (cache hit)
41
+ 17 http cache typescript@https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz 0ms (cache hit)
42
42
  18 http cache tinypool@https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz 0ms (cache hit)
43
43
  19 http cache oxfmt@https://registry.npmjs.org/oxfmt/-/oxfmt-0.55.0.tgz 0ms (cache hit)
44
44
  20 http cache @oxfmt/binding-linux-x64-gnu@https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz 0ms (cache hit)
@@ -46,12 +46,12 @@
46
46
  22 silly tarball no local data for tinypool@https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz. Extracting by manifest.
47
47
  23 silly tarball no local data for oxfmt@https://registry.npmjs.org/oxfmt/-/oxfmt-0.55.0.tgz. Extracting by manifest.
48
48
  24 silly tarball no local data for @oxfmt/binding-linux-x64-gnu@https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz. Extracting by manifest.
49
- 25 http fetch GET 200 https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz 141ms (cache miss)
50
- 26 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 197ms
49
+ 25 http fetch GET 200 https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz 143ms (cache miss)
50
+ 26 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 181ms
51
51
  27 silly audit report {}
52
- 28 http fetch GET 200 https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz 325ms (cache miss)
52
+ 28 http fetch GET 200 https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz 327ms (cache miss)
53
53
  29 http fetch GET 200 https://registry.npmjs.org/oxfmt/-/oxfmt-0.55.0.tgz 344ms (cache miss)
54
- 30 http fetch GET 200 https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz 458ms (cache miss)
54
+ 30 http fetch GET 200 https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz 456ms (cache miss)
55
55
  31 silly ADD node_modules/typescript
56
56
  32 silly ADD node_modules/tinypool
57
57
  33 silly ADD node_modules/oxfmt
@@ -5,10 +5,10 @@
5
5
  4 silly config load:file:/builds/gurso/oxc-config/.npmrc
6
6
  5 silly config load:file:/root/.npmrc
7
7
  6 silly config load:file:/usr/local/etc/npmrc
8
- 7 verbose title npm run lint
9
- 8 verbose argv "run" "lint"
10
- 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T19_13_34_806Z-
11
- 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T19_13_34_806Z-debug-0.log
8
+ 7 verbose title npm run fmt
9
+ 8 verbose argv "run" "fmt"
10
+ 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_34_50_324Z-
11
+ 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_34_50_324Z-debug-0.log
12
12
  11 silly logfile done cleaning log files
13
13
  12 verbose cwd /builds/gurso/oxc-config
14
14
  13 verbose os Linux 5.15.154+
@@ -7,8 +7,8 @@
7
7
  6 silly config load:file:/usr/local/etc/npmrc
8
8
  7 verbose title npm ci
9
9
  8 verbose argv "ci" "--prefer-offline"
10
- 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T19_14_01_446Z-
11
- 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T19_14_01_446Z-debug-0.log
10
+ 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_35_25_123Z-
11
+ 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_35_25_123Z-debug-0.log
12
12
  11 silly logfile done cleaning log files
13
13
  12 silly packumentCache heap:2248146944 maxSize:562036736 maxEntrySize:281018368
14
14
  13 silly packumentCache heap:2248146944 maxSize:562036736 maxEntrySize:281018368
@@ -42,7 +42,7 @@
42
42
  18 http cache tinypool@https://registry.npmjs.org/tinypool/-/tinypool-2.1.0.tgz 0ms (cache hit)
43
43
  19 http cache oxfmt@https://registry.npmjs.org/oxfmt/-/oxfmt-0.55.0.tgz 0ms (cache hit)
44
44
  20 http cache @oxfmt/binding-linux-x64-gnu@https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.55.0.tgz 0ms (cache hit)
45
- 21 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 278ms
45
+ 21 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 334ms
46
46
  22 silly audit report {}
47
47
  23 silly ADD node_modules/typescript
48
48
  24 silly ADD node_modules/tinypool
@@ -0,0 +1,18 @@
1
+ 0 verbose cli /usr/local/bin/node /usr/local/bin/npm
2
+ 1 info using npm@11.16.0
3
+ 2 info using node@v26.3.1
4
+ 3 silly config load:file:/usr/local/lib/node_modules/npm/npmrc
5
+ 4 silly config load:file:/builds/gurso/oxc-config/.npmrc
6
+ 5 silly config load:file:/root/.npmrc
7
+ 6 silly config load:file:/usr/local/etc/npmrc
8
+ 7 verbose title npm run build
9
+ 8 verbose argv "run" "build"
10
+ 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_35_25_832Z-
11
+ 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_35_25_832Z-debug-0.log
12
+ 11 silly logfile done cleaning log files
13
+ 12 verbose cwd /builds/gurso/oxc-config
14
+ 13 verbose os Linux 5.15.154+
15
+ 14 verbose node v26.3.1
16
+ 15 verbose npm v11.16.0
17
+ 16 verbose exit 0
18
+ 17 info ok
@@ -7,8 +7,8 @@
7
7
  6 silly config load:file:/usr/local/etc/npmrc
8
8
  7 verbose title npm publish
9
9
  8 verbose argv "publish" "--access" "public"
10
- 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T19_14_01_988Z-
11
- 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T19_14_01_988Z-debug-0.log
10
+ 9 verbose logfile logs-max:10 dir:/builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_35_26_342Z-
11
+ 10 verbose logfile /builds/gurso/oxc-config/.npm/_logs/2026-06-19T20_35_26_342Z-debug-0.log
12
12
  11 silly logfile done cleaning log files
13
13
  12 verbose publish [ '.' ]
14
14
  13 silly packumentCache heap:2248146944 maxSize:562036736 maxEntrySize:281018368
package/bin.sh CHANGED
@@ -24,13 +24,13 @@ case "$1" in
24
24
  "import")
25
25
  case "$2" in
26
26
  "fmt")
27
- cp "$src_dir/oxfmt.config.js" "$PWD/oxfmt.config.ts"
27
+ cp "$src_dir/oxfmt.js" "$PWD/oxfmt.config.ts"
28
28
  ;;
29
29
  "lint")
30
30
  echo "Lint config not ready yet for import"
31
31
  ;;
32
32
  "")
33
- cp "$src_dir/oxfmt.config.js" "$PWD/oxfmt.config.ts"
33
+ cp "$src_dir/oxfmt.js" "$PWD/oxfmt.config.ts"
34
34
  echo "Lint config not ready yet for import"
35
35
  ;;
36
36
  *)
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import fmt from "./oxfmt.config.js";
2
+ export default { fmt };
package/oxfmt.config.js CHANGED
@@ -1,3 +1,8 @@
1
- import { fmt } from "@gurso/oxc-config"
2
-
3
- export default fmt
1
+ import { defineConfig } from "oxfmt";
2
+ export default defineConfig({
3
+ bracketSameLine: true,
4
+ useTabs: true,
5
+ semi: false,
6
+ sortTailwindcss: true,
7
+ arrowParens: "avoid",
8
+ });
package/oxfmt.js ADDED
@@ -0,0 +1,3 @@
1
+ import conf from "@gurso/oxc-config"
2
+
3
+ export default conf.fmt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurso/oxc-config",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "keywords": [
5
5
  "oxc"
6
6
  ],
@@ -17,7 +17,8 @@
17
17
  "scripts": {
18
18
  "lint": "echo 'TODO: lint stuff'",
19
19
  "fmt": "oxfmt --check",
20
- "typecheck": "tsc --noEmit"
20
+ "typecheck": "tsc --noEmit",
21
+ "build": "tsc"
21
22
  },
22
23
  "dependencies": {
23
24
  "oxfmt": "0.55.0"
package/postinstall.js DELETED
@@ -1,14 +0,0 @@
1
- import { existsSync, copyFile } from "node:fs"
2
- import { resolve } from "node:path"
3
- import pkg from "./package.json" with { type: "json" }
4
-
5
- const [scope] = pkg.name.split("/")
6
- const scopeFolder = resolve("./").split("/").at(-2)
7
-
8
- const destFile = resolve("../../../oxfmt.config.ts")
9
-
10
- if (scope === scopeFolder && !existsSync(destFile)) {
11
- copyFile(resolve("./oxfmt.config.ts"), destFile, err => {
12
- if (err) console.error(err)
13
- })
14
- }