@forwardimpact/libcodegen 0.1.41 → 0.1.42

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,14 +1,24 @@
1
1
  {
2
2
  "name": "@forwardimpact/libcodegen",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "Protocol Buffer code generation utilities for Guide",
5
5
  "license": "Apache-2.0",
6
6
  "author": "D. Olsson <hi@senzilla.io>",
7
7
  "type": "module",
8
- "main": "index.js",
8
+ "main": "./src/index.js",
9
+ "exports": {
10
+ ".": "./src/index.js",
11
+ "./bin/fit-codegen.js": "./bin/fit-codegen.js"
12
+ },
9
13
  "bin": {
10
14
  "fit-codegen": "./bin/fit-codegen.js"
11
15
  },
16
+ "files": [
17
+ "src/**/*.js",
18
+ "bin/**/*.js",
19
+ "templates/**",
20
+ "README.md"
21
+ ],
12
22
  "engines": {
13
23
  "bun": ">=1.2.0",
14
24
  "node": ">=18.0.0"
@@ -108,6 +108,7 @@ export class CodegenBase {
108
108
  const __dirname = this.#path.dirname(__filename);
109
109
  const templatePath = this.#path.join(
110
110
  __dirname,
111
+ "..",
111
112
  "templates",
112
113
  `${kind}.js.mustache`,
113
114
  );
File without changes
File without changes
File without changes
File without changes