@ts-for-gir/generator-base 4.0.0-beta.25 → 4.0.0-beta.26

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/package.json CHANGED
@@ -1,20 +1,15 @@
1
1
  {
2
2
  "name": "@ts-for-gir/generator-base",
3
- "version": "4.0.0-beta.25",
3
+ "version": "4.0.0-beta.26",
4
4
  "description": "Base generator for ts-for-gir",
5
- "module": "lib/index.js",
6
- "main": "lib/index.js",
5
+ "main": "src/index.ts",
6
+ "module": "src/index.ts",
7
7
  "type": "module",
8
8
  "engines": {
9
9
  "node": ">=18"
10
10
  },
11
11
  "scripts": {
12
- "build": "yarn lint && yarn build:ts",
13
- "build:ts": "tsc",
14
- "clear": "yarn clear:build",
15
- "clear:build": "rimraf ./lib",
16
- "watch": "yarn build:ts --watch",
17
- "lint": "eslint . --fix"
12
+ "check": "tsc --noEmit"
18
13
  },
19
14
  "repository": {
20
15
  "type": "git",
@@ -22,8 +17,7 @@
22
17
  },
23
18
  "author": "Pascal Garber <pascal@artandcode.studio>",
24
19
  "files": [
25
- "lib",
26
- "templates"
20
+ "src"
27
21
  ],
28
22
  "license": "Apache-2.0",
29
23
  "bugs": {
@@ -33,18 +27,14 @@
33
27
  "keywords": [
34
28
  "generator"
35
29
  ],
30
+ "exports": {
31
+ ".": "./src/index.ts"
32
+ },
36
33
  "devDependencies": {
37
- "@types/node": "^24.0.1",
38
- "@typescript-eslint/eslint-plugin": "^8.34.0",
39
- "@typescript-eslint/parser": "^8.34.0",
40
- "eslint": "^9.29.0",
41
- "eslint-config-prettier": "^10.1.5",
42
- "eslint-plugin-prettier": "^5.4.1",
43
- "prettier": "^3.5.3",
44
- "rimraf": "^6.0.1",
45
- "typescript": "^5.8.3"
34
+ "@types/node": "^24.2.1",
35
+ "typescript": "^5.9.2"
46
36
  },
47
37
  "dependencies": {
48
- "@ts-for-gir/lib": "^4.0.0-beta.25"
38
+ "@ts-for-gir/lib": "^4.0.0-beta.26"
49
39
  }
50
40
  }
@@ -0,0 +1,5 @@
1
+ export enum GeneratorType {
2
+ TYPES,
3
+ HTML_DOC,
4
+ JSON,
5
+ }
@@ -0,0 +1,7 @@
1
+ import type { GirModule } from "@ts-for-gir/lib";
2
+
3
+ export interface Generator {
4
+ start(): Promise<void>;
5
+ generate(module: GirModule): Promise<void>;
6
+ finish(girModules: GirModule[]): Promise<void>;
7
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./generator.ts";
2
+ export * from "./generator-type.ts";
@@ -1,4 +0,0 @@
1
- export declare enum GeneratorType {
2
- TYPES = 0,
3
- HTML_DOC = 1
4
- }
@@ -1,6 +0,0 @@
1
- export var GeneratorType;
2
- (function (GeneratorType) {
3
- GeneratorType[GeneratorType["TYPES"] = 0] = "TYPES";
4
- GeneratorType[GeneratorType["HTML_DOC"] = 1] = "HTML_DOC";
5
- })(GeneratorType || (GeneratorType = {}));
6
- //# sourceMappingURL=generator-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator-type.js","sourceRoot":"","sources":["../src/generator-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,mDAAK,CAAA;IACL,yDAAQ,CAAA;AACZ,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
@@ -1,6 +0,0 @@
1
- import type { GirModule, NSRegistry } from '@ts-for-gir/lib';
2
- export interface Generator {
3
- start(registry: NSRegistry): Promise<void>;
4
- generate(registry: NSRegistry, module: GirModule): Promise<void>;
5
- finish(registry: NSRegistry, girModules: GirModule[]): Promise<void>;
6
- }
package/lib/generator.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=generator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":""}
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './generator-type.js';
2
- export * from './generator.js';
package/lib/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './generator-type.js';
2
- export * from './generator.js';
3
- //# sourceMappingURL=index.js.map
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA"}