@intuned/runtime-dev 1.0.6-dev → 1.0.6-dev-2

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.
@@ -10,7 +10,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
10
10
  _dotenv.default.config({
11
11
  path: `.env`
12
12
  });
13
- _commander.program.description("Deploy an Intuned project to be public").argument("[project-name]", "Name of the project to deploy").option("-w, --workspace-id <id>", "Your Intuned workspace ID").option("-k, --api-key <key>", "Your Intuned API key").action(async (projectName, options) => {
13
+ _commander.program.description("Deploy an Intuned project to be public").argument("[project-name]", "Name of the project to deploy").option("-w, --workspace-id <id>", "Your Intuned workspace ID").option("-k, --api-key <key>", "Your Intuned API key").action(async (projectName, options) => {
14
14
  try {
15
15
  if (!projectName) {
16
16
  throw new Error("Project name is required");
@@ -9,7 +9,7 @@ exports.validateProjectName = void 0;
9
9
  var fs = _interopRequireWildcard(require("fs"));
10
10
  var path = _interopRequireWildcard(require("path"));
11
11
  var _chalk = _interopRequireDefault(require("chalk"));
12
- var _minimatch = _interopRequireDefault(require("minimatch"));
12
+ var _minimatch = require("minimatch");
13
13
  var _zod = require("zod");
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
@@ -29,10 +29,10 @@ function matchesGitignorePatterns(filePath, patterns, projectPath) {
29
29
  for (const pattern of patterns) {
30
30
  if (!pattern || pattern.startsWith("#")) continue;
31
31
  if (pattern.startsWith("!")) {
32
- if ((0, _minimatch.default)(relativePath, pattern.substring(1))) {
32
+ if ((0, _minimatch.minimatch)(relativePath, pattern.substring(1))) {
33
33
  return false;
34
34
  }
35
- } else if ((0, _minimatch.default)(relativePath, pattern)) {
35
+ } else if ((0, _minimatch.minimatch)(relativePath, pattern)) {
36
36
  return true;
37
37
  }
38
38
  }
@@ -83,11 +83,6 @@ async function convertProjectToCodeTree(projectPath) {
83
83
  currentDir = path.dirname(currentDir);
84
84
  }
85
85
  }
86
- if (!gitignoreFound) {
87
- console.log(_chalk.default.yellow(".gitignore file not found. Using default exclusions only."));
88
- } else {
89
- console.log(_chalk.default.yellow("Using standard exclusions plus .gitignore patterns."));
90
- }
91
86
  const filesToDeploy = listFilesNotIgnored(projectPath, ignorePatterns);
92
87
  let totalSize = 0;
93
88
  for (const file of filesToDeploy) {
@@ -143,9 +138,8 @@ async function convertProjectToCodeTree(projectPath) {
143
138
  }
144
139
  return tree;
145
140
  }
146
- console.log(_chalk.default.cyan("\nBuilding code tree..."));
141
+ console.log(_chalk.default.cyan("\nBuilding project..."));
147
142
  const tree = readDirectory(projectPath);
148
- console.log(_chalk.default.green("Code tree generation complete!"));
149
143
  return tree;
150
144
  }
151
145
  async function deployProject(projectName, auth) {
@@ -190,7 +184,6 @@ const validateProjectName = projectName => {
190
184
  });
191
185
  const validation = nameSchema.safeParse(projectName);
192
186
  if (!validation.success) {
193
- console.error(_chalk.default.red(validation.error.errors[0].message));
194
187
  return {
195
188
  isValid: false,
196
189
  errorMessage: validation.error.errors[0].message
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.0.6-dev",
3
+ "version": "1.0.6-dev-2",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -68,6 +68,8 @@
68
68
  "applicationinsights": "^2.9.2",
69
69
  "async-retry": "^1.3.3",
70
70
  "babel-plugin-dynamic-import-node": "^2.3.3",
71
+ "box": "^0.0.4",
72
+ "boxen": "^8.0.1",
71
73
  "chalk": "^4.1.2",
72
74
  "commander": "^11.0.0",
73
75
  "cross-fetch": "^4.0.0",
@@ -78,9 +80,11 @@
78
80
  "fs-extra": "^11.3.0",
79
81
  "https-proxy-agent": "^7.0.5",
80
82
  "image-size": "^1.1.1",
83
+ "inquirer": "^12.6.0",
81
84
  "jsonwebtoken": "^9.0.2",
82
85
  "lodash": "^4.17.21",
83
86
  "milliparsec": "^2.3.0",
87
+ "minimatch": "^10.0.1",
84
88
  "ms": "^2.1.3",
85
89
  "nanoid": "3",
86
90
  "neverthrow": "^6.1.0",