@open-norantec/herbal 1.0.2-alpha.14 → 1.0.2-alpha.15

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.
@@ -7,6 +7,7 @@ var _ = require("lodash");
7
7
  var fs = require("fs-extra");
8
8
  var path = require("node:path");
9
9
  var requireFromString = require("require-from-string");
10
+ var reflect_declaration_1 = require("../transformers/reflect-declaration");
10
11
  var command = new commander_1.Command('herbal');
11
12
  var log = function (level) {
12
13
  var _a, _b;
@@ -159,6 +160,11 @@ command
159
160
  watch: false,
160
161
  executeAfterBuild: false,
161
162
  obfuscate: false,
163
+ customTransformers: function (program) {
164
+ return {
165
+ before: [(0, reflect_declaration_1.transformer)(program)],
166
+ };
167
+ },
162
168
  getWatcher: handleGetWatcher,
163
169
  onGetFileContent: handleGetFileContent,
164
170
  onOutputFile: createHandleOutputFile(false),
@@ -1,3 +1,3 @@
1
1
  import * as ts from 'typescript';
2
2
  export declare const DECORATOR_NAME_PREFIX = "\u03A6nt:method:";
3
- export default function transformer(program: ts.Program): ts.TransformerFactory<ts.SourceFile>;
3
+ export declare function transformer(program: ts.Program): ts.TransformerFactory<ts.SourceFile>;
@@ -9,7 +9,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
9
9
  return to.concat(ar || Array.prototype.slice.call(from));
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DECORATOR_NAME_PREFIX = void 0;
12
+ exports.transformer = exports.DECORATOR_NAME_PREFIX = void 0;
13
13
  var ts = require("typescript");
14
14
  exports.DECORATOR_NAME_PREFIX = 'Φnt:method:';
15
15
  function transformer(program) {
@@ -60,4 +60,4 @@ function transformer(program) {
60
60
  };
61
61
  };
62
62
  }
63
- exports.default = transformer;
63
+ exports.transformer = transformer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-norantec/herbal",
3
- "version": "1.0.2-alpha.14",
3
+ "version": "1.0.2-alpha.15",
4
4
  "description": "Herbal is a builder and toolchain for Nest.js applications",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -38,7 +38,7 @@
38
38
  "@nestjs/common": "^10.0.0",
39
39
  "@nestjs/core": "^10.4.19",
40
40
  "@nestjs/sequelize": "^10.0.1",
41
- "@open-norantec/forge": "^2.0.0-alpha.3",
41
+ "@open-norantec/forge": "^2.0.0-alpha.5",
42
42
  "@open-norantec/utilities": "latest",
43
43
  "commander": "^12.1.0",
44
44
  "fs-extra": "^11.3.4",
@@ -56,7 +56,6 @@
56
56
  "zod": "^3.25.67"
57
57
  },
58
58
  "devDependencies": {
59
- "@types/babel__core": "^7.20.5",
60
59
  "@types/express": "^5.0.3",
61
60
  "@types/fs-extra": "^11.0.4",
62
61
  "@types/lodash": "^4.17.16",
@@ -64,7 +63,6 @@
64
63
  "cross-env": "^7.0.3",
65
64
  "eslint": "^8.0.0",
66
65
  "express": "^4.21.2",
67
- "prettier": "^3.0.0",
68
66
  "rimraf": "^6.0.1",
69
67
  "ts-node": "^10.0.0"
70
68
  }