create-mastra 0.1.0-alpha.27 → 0.1.0-alpha.29

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/dist/index.js CHANGED
@@ -1095,16 +1095,25 @@ var LogLevel = {
1095
1095
  };
1096
1096
  var Logger = /* @__PURE__ */ function() {
1097
1097
  function Logger2(options) {
1098
+ var _options;
1098
1099
  if (options === undefined) {
1099
1100
  options = {};
1100
1101
  }
1101
1102
  this.logger = undefined;
1102
1103
  this.transports = undefined;
1103
1104
  this.transports = options.transports || {};
1105
+ var transportsAry = Object.entries(this.transports);
1104
1106
  this.logger = pino({
1105
1107
  name: options.name || "app",
1106
1108
  level: options.level || LogLevel.INFO
1107
- }, pino.multistream([].concat(Object.entries(this.transports).map(function(_ref2) {
1109
+ }, options.overrideDefaultTransports ? (_options = options) == null || (_options = _options.transports) == null ? undefined : _options["default"] : transportsAry.length === 0 ? pretty({
1110
+ colorize: true,
1111
+ levelFirst: true,
1112
+ ignore: "pid,hostname",
1113
+ colorizeObjects: true,
1114
+ translateTime: "SYS:standard",
1115
+ singleLine: false
1116
+ }) : pino.multistream([].concat(transportsAry.map(function(_ref2) {
1108
1117
  var transport = _ref2[1];
1109
1118
  return {
1110
1119
  stream: transport,
@@ -1375,7 +1384,7 @@ var FileService = class {
1375
1384
  async copyStarterFile(inputFile, outputFilePath, replaceIfExists) {
1376
1385
  const __filename = fileURLToPath(import.meta.url);
1377
1386
  const __dirname = path.dirname(__filename);
1378
- const filePath = path.resolve(__dirname, "templates", "starter-files", inputFile);
1387
+ const filePath = path.resolve(__dirname, "starter-files", inputFile);
1379
1388
  const fileString = fs3__default__default.readFileSync(filePath, "utf8");
1380
1389
  if (fs3__default__default.existsSync(outputFilePath) && !replaceIfExists) {
1381
1390
  console.log(`${outputFilePath} already exists`);