@apitree.cz/vitest-config 0.2.0-next.7fb5c8c → 0.2.0-next.a671370

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/README.md CHANGED
@@ -34,6 +34,9 @@ export { react as default } from '@apitree.cz/vitest-config';
34
34
 
35
35
  ### Nest.js
36
36
 
37
+ ⚠️ _Nest.js projects are CJS by default. This configuration needs to be placed in `vitest.config.mjs` to interpret it as
38
+ ESM._
39
+
37
40
  ```typescript
38
41
  export { nestjs as default } from '@apitree.cz/vitest-config';
39
42
  ```
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAC;IAC/B,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE;YACR,GAAG,QAAQ;YACX,OAAO,EAAE,CAAC,aAAa,CAAC;SACzB;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAAG,EAAE,IAAI;IACT,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;CACD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nestjs.js","sourceRoot":"","sources":["../src/nestjs.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,CAAC,MAAM,MAAM,GAAe,WAAW,CAAC,IAAI,EAAE;IAClD,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;CAC5B,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAC;IAChC,OAAO,EAAE,CAAC,SAAS,EAAE,CAAC;IACtB,IAAI,EAAE;QACJ,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE;YACR,GAAG,QAAQ;YACX,OAAO,EAAE,CAAC,mBAAmB,CAAC;SAC/B;QACD,UAAU,EAAE,CAAC,gBAAgB,CAAC;KAC/B;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apitree.cz/vitest-config",
3
- "version": "0.2.0-next.7fb5c8c",
3
+ "version": "0.2.0-next.a671370",
4
4
  "description": "Vitest configuration for ApiTree projects.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,9 +9,7 @@
9
9
  },
10
10
  "sideEffects": false,
11
11
  "type": "module",
12
- "exports": "./dist/esm/index.js",
13
- "main": "./dist/cjs/index.js",
14
- "types": "./dist/esm/index.d.ts",
12
+ "exports": "./dist/index.js",
15
13
  "files": [
16
14
  "dist"
17
15
  ],
@@ -29,9 +27,7 @@
29
27
  "vitest": "^0.34.6"
30
28
  },
31
29
  "scripts": {
32
- "build": "run-p build:cjs build:esm",
33
- "build:cjs": "tsc --project tsconfig.build.cjs.json",
34
- "build:esm": "tsc --build tsconfig.build.json",
30
+ "build": "tsc --build tsconfig.build.json",
35
31
  "cleanup": "rimraf .eslintcache .turbo tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo dist node_modules",
36
32
  "fix": "run-p ts format:fix lint:fix",
37
33
  "format": "prettier --check \"./**/*.{json,md}\"",
package/dist/cjs/base.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.base = void 0;
4
- const config_1 = require("vitest/config");
5
- const constants_js_1 = require("./constants.js");
6
- exports.base = (0, config_1.defineConfig)({
7
- test: {
8
- environment: 'node',
9
- coverage: {
10
- ...constants_js_1.coverage,
11
- include: ['src/**/*.ts'],
12
- },
13
- },
14
- });
15
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/base.ts"],"names":[],"mappings":";;;AAAA,0CAA6C;AAE7C,iDAA0C;AAE7B,QAAA,IAAI,GAAG,IAAA,qBAAY,EAAC;IAC/B,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE;YACR,GAAG,uBAAQ;YACX,OAAO,EAAE,CAAC,aAAa,CAAC;SACzB;KACF;CACF,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.coverage = void 0;
4
- exports.coverage = {
5
- all: true,
6
- provider: 'istanbul',
7
- reporter: ['html', 'text'],
8
- };
9
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG;IACtB,GAAG,EAAE,IAAI;IACT,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;CACD,CAAC"}
package/dist/cjs/index.js DELETED
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./base.js"), exports);
18
- __exportStar(require("./nestjs.js"), exports);
19
- __exportStar(require("./react.js"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,6CAA2B"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.nestjs = void 0;
7
- const unplugin_swc_1 = __importDefault(require("unplugin-swc"));
8
- const config_1 = require("vitest/config");
9
- const base_js_1 = require("./base.js");
10
- exports.nestjs = (0, config_1.mergeConfig)(base_js_1.base, {
11
- plugins: [unplugin_swc_1.default.vite({ module: { type: 'es6' } })],
12
- });
13
- //# sourceMappingURL=nestjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nestjs.js","sourceRoot":"","sources":["../../src/nestjs.ts"],"names":[],"mappings":";;;;;;AAAA,gEAA+B;AAE/B,0CAA4C;AAE5C,uCAAiC;AAEpB,QAAA,MAAM,GAAe,IAAA,oBAAW,EAAC,cAAI,EAAE;IAClD,OAAO,EAAE,CAAC,sBAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;CAC5B,CAAC,CAAC"}
package/dist/cjs/react.js DELETED
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.react = void 0;
7
- const plugin_react_1 = __importDefault(require("@vitejs/plugin-react"));
8
- const config_1 = require("vitest/config");
9
- const constants_js_1 = require("./constants.js");
10
- exports.react = (0, config_1.defineConfig)({
11
- plugins: [(0, plugin_react_1.default)()],
12
- test: {
13
- environment: 'jsdom',
14
- coverage: {
15
- ...constants_js_1.coverage,
16
- include: ['src/**/*.{ts,tsx}'],
17
- },
18
- setupFiles: ['tests/setup.ts'],
19
- },
20
- });
21
- //# sourceMappingURL=react.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.js","sourceRoot":"","sources":["../../src/react.ts"],"names":[],"mappings":";;;;;;AAAA,wEAA6C;AAC7C,0CAA6C;AAE7C,iDAA0C;AAE7B,QAAA,KAAK,GAAG,IAAA,qBAAY,EAAC;IAChC,OAAO,EAAE,CAAC,IAAA,sBAAS,GAAE,CAAC;IACtB,IAAI,EAAE;QACJ,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE;YACR,GAAG,uBAAQ;YACX,OAAO,EAAE,CAAC,mBAAmB,CAAC;SAC/B;QACD,UAAU,EAAE,CAAC,gBAAgB,CAAC;KAC/B;CACF,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAC;IAC/B,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE;YACR,GAAG,QAAQ;YACX,OAAO,EAAE,CAAC,aAAa,CAAC;SACzB;KACF;CACF,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAAG,EAAE,IAAI;IACT,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;CACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"nestjs.js","sourceRoot":"","sources":["../../src/nestjs.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,CAAC,MAAM,MAAM,GAAe,WAAW,CAAC,IAAI,EAAE;IAClD,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;CAC5B,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.js","sourceRoot":"","sources":["../../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAC;IAChC,OAAO,EAAE,CAAC,SAAS,EAAE,CAAC;IACtB,IAAI,EAAE;QACJ,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE;YACR,GAAG,QAAQ;YACX,OAAO,EAAE,CAAC,mBAAmB,CAAC;SAC/B;QACD,UAAU,EAAE,CAAC,gBAAgB,CAAC;KAC/B;CACF,CAAC,CAAC"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes