distopia 0.1.0 → 0.2.1

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/README.md CHANGED
@@ -1,3 +1,17 @@
1
1
  # Distopia
2
2
 
3
3
  Library for [Distopia](https://distopia.top).
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ npm install distopia
9
+
10
+ jsr install @thunlights/distopia
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```ts
16
+ import { oxfmtConfig, oxlintConfig } from "distopia";
17
+ ```
package/dist/index.cjs ADDED
@@ -0,0 +1,38 @@
1
+ /* @ts-self-types="./index.d.mts" */
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ let oxfmt = require("oxfmt");
4
+ let oxlint = require("oxlint");
5
+ //#region package.json
6
+ var version = "0.2.1";
7
+ //#endregion
8
+ //#region ../template/src/oxfmt.ts
9
+ const config = (0, oxfmt.defineConfig)({
10
+ printWidth: 100,
11
+ semi: true,
12
+ useTabs: false,
13
+ tabWidth: 2,
14
+ singleQuote: false,
15
+ trailingComma: "all",
16
+ sortImports: true,
17
+ ignorePatterns: ["*.auto.ts", "dist/**"]
18
+ });
19
+ //#endregion
20
+ //#region ../template/src/oxlint.ts
21
+ const config$1 = (0, oxlint.defineConfig)({
22
+ plugins: [
23
+ "typescript",
24
+ "unicorn",
25
+ "oxc"
26
+ ],
27
+ categories: { correctness: "error" },
28
+ rules: {},
29
+ env: { builtin: true },
30
+ ignorePatterns: ["*.auto.ts", "dist/**"]
31
+ });
32
+ //#endregion
33
+ //#region src/index.ts
34
+ const DISTOPIA_VERSION = version;
35
+ //#endregion
36
+ exports.DISTOPIA_VERSION = DISTOPIA_VERSION;
37
+ exports.oxfmtCfg = config;
38
+ exports.oxlintCfg = config$1;
@@ -0,0 +1,30 @@
1
+
2
+ //#region ../template/src/oxfmt.d.ts
3
+ declare const config: {
4
+ printWidth: number;
5
+ semi: true;
6
+ useTabs: false;
7
+ tabWidth: number;
8
+ singleQuote: false;
9
+ trailingComma: "all";
10
+ sortImports: true;
11
+ ignorePatterns: string[];
12
+ };
13
+ //#endregion
14
+ //#region ../template/src/oxlint.d.ts
15
+ declare const config$1: {
16
+ plugins: ("unicorn" | "typescript" | "oxc")[];
17
+ categories: {
18
+ correctness: "error";
19
+ };
20
+ rules: {};
21
+ env: {
22
+ builtin: true;
23
+ };
24
+ ignorePatterns: string[];
25
+ };
26
+ //#endregion
27
+ //#region src/index.d.ts
28
+ declare const DISTOPIA_VERSION: string;
29
+ //#endregion
30
+ export { DISTOPIA_VERSION, config as oxfmtCfg, config$1 as oxlintCfg };
@@ -0,0 +1,30 @@
1
+
2
+ //#region ../template/src/oxfmt.d.ts
3
+ declare const config: {
4
+ printWidth: number;
5
+ semi: true;
6
+ useTabs: false;
7
+ tabWidth: number;
8
+ singleQuote: false;
9
+ trailingComma: "all";
10
+ sortImports: true;
11
+ ignorePatterns: string[];
12
+ };
13
+ //#endregion
14
+ //#region ../template/src/oxlint.d.ts
15
+ declare const config$1: {
16
+ plugins: ("unicorn" | "typescript" | "oxc")[];
17
+ categories: {
18
+ correctness: "error";
19
+ };
20
+ rules: {};
21
+ env: {
22
+ builtin: true;
23
+ };
24
+ ignorePatterns: string[];
25
+ };
26
+ //#endregion
27
+ //#region src/index.d.ts
28
+ declare const DISTOPIA_VERSION: string;
29
+ //#endregion
30
+ export { DISTOPIA_VERSION, config as oxfmtCfg, config$1 as oxlintCfg };
package/dist/index.mjs ADDED
@@ -0,0 +1,35 @@
1
+ /* @ts-self-types="./index.d.mts" */
2
+ import { defineConfig } from "oxfmt";
3
+ import { defineConfig as defineConfig$1 } from "oxlint";
4
+ //#region package.json
5
+ var version = "0.2.1";
6
+ //#endregion
7
+ //#region ../template/src/oxfmt.ts
8
+ const config = defineConfig({
9
+ printWidth: 100,
10
+ semi: true,
11
+ useTabs: false,
12
+ tabWidth: 2,
13
+ singleQuote: false,
14
+ trailingComma: "all",
15
+ sortImports: true,
16
+ ignorePatterns: ["*.auto.ts", "dist/**"]
17
+ });
18
+ //#endregion
19
+ //#region ../template/src/oxlint.ts
20
+ const config$1 = defineConfig$1({
21
+ plugins: [
22
+ "typescript",
23
+ "unicorn",
24
+ "oxc"
25
+ ],
26
+ categories: { correctness: "error" },
27
+ rules: {},
28
+ env: { builtin: true },
29
+ ignorePatterns: ["*.auto.ts", "dist/**"]
30
+ });
31
+ //#endregion
32
+ //#region src/index.ts
33
+ const DISTOPIA_VERSION = version;
34
+ //#endregion
35
+ export { DISTOPIA_VERSION, config as oxfmtCfg, config$1 as oxlintCfg };
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "distopia",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Library for Distopia.",
5
+ "keywords": [
6
+ "distopia",
7
+ "thunlights"
8
+ ],
5
9
  "license": "MIT",
6
10
  "repository": {
7
11
  "type": "git",
@@ -9,7 +13,8 @@
9
13
  "directory": "lib/distopia"
10
14
  },
11
15
  "files": [
12
- "dist"
16
+ "dist",
17
+ "CHANGELOG"
13
18
  ],
14
19
  "type": "module",
15
20
  "exports": {
@@ -33,9 +38,9 @@
33
38
  "prepublishOnly": "bun run build"
34
39
  },
35
40
  "dependencies": {
36
- "@types/node": "24",
41
+ "@types/node": "24.13.2",
37
42
  "jsr": "0.14.3",
38
- "oxfmt": "0.45.0",
43
+ "oxfmt": "0.54.0",
39
44
  "oxlint": "1.60.0",
40
45
  "tsdown": "0.22.2"
41
46
  },
@@ -43,6 +48,6 @@
43
48
  "bun": "1.3.13"
44
49
  },
45
50
  "peerDependencies": {
46
- "typescript": "6.0.2"
51
+ "typescript": "6.0.3"
47
52
  }
48
53
  }