miqro 1.7.6 → 1.7.7

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.
@@ -5,9 +5,7 @@ const core_1 = require("@miqro/core");
5
5
  const fs_1 = require("fs");
6
6
  const path_1 = require("path");
7
7
  const testTemplates = {
8
- js: (category) => `const { it, requireMock, fake } = require("@miqro/test");
9
-
10
- const options = {
8
+ js: (category) => `const options = {
11
9
  category: "${category}",
12
10
  before: async () => {
13
11
 
package/dist/cmds/new.js CHANGED
@@ -4,6 +4,12 @@ exports.mainTS = exports.mainJS = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const path_1 = require("path");
6
6
  const utils_1 = require("../utils");
7
+ const gitignoreTemplate = {
8
+ ts: () => `node_modules/
9
+ dist/
10
+ `,
11
+ js: () => `node_modules/`
12
+ };
7
13
  const packageTemplate = {
8
14
  ts: (name) => `{
9
15
  "name": "${name}",
@@ -95,6 +101,10 @@ const mainJS = (typescript = false) => {
95
101
  (0, utils_1.execSync)(`npm install @types/node --save-dev`, {
96
102
  cwd: appFolder
97
103
  });
104
+ (0, fs_1.writeFileSync)((0, path_1.resolve)(appFolder, ".gitignore"), gitignoreTemplate.ts());
105
+ }
106
+ else {
107
+ (0, fs_1.writeFileSync)((0, path_1.resolve)(appFolder, ".gitignore"), gitignoreTemplate.js());
98
108
  }
99
109
  (0, utils_1.execSync)(`npm install @miqro/test --save-dev`, {
100
110
  cwd: appFolder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miqro",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@miqro/core": "^1.5.3",
21
21
  "@miqro/runner": "^1.2.4",
22
- "@miqro/test": "^0.0.7",
22
+ "@miqro/test": "^0.0.9",
23
23
  "deep-diff": "1.0.2"
24
24
  },
25
25
  "devDependencies": {