@dword-design/tester-plugin-tmp-dir 2.1.5 → 2.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +8 -18
  2. package/package.json +7 -4
package/dist/index.js CHANGED
@@ -1,19 +1,9 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _withLocalTmpDir = _interopRequireDefault(require("with-local-tmp-dir"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- var _default = options => ({
13
- transform: test => function () {
14
- return (0, _withLocalTmpDir.default)(() => test.call(this), options);
1
+ import withLocalTmpDir from 'with-local-tmp-dir';
2
+ export default (options => ({
3
+ async afterEach() {
4
+ await this.resetWithLocalTmpDir();
5
+ },
6
+ async beforeEach() {
7
+ this.resetWithLocalTmpDir = await withLocalTmpDir(options);
15
8
  }
16
- });
17
-
18
- exports.default = _default;
19
- module.exports = exports.default;
9
+ }));
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@dword-design/tester-plugin-tmp-dir",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "repository": "dword-design/tester-plugin-tmp-dir",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
7
7
  "author": "Sebastian Landwehr <info@sebastianlandwehr.com>",
8
+ "type": "module",
9
+ "exports": "./dist/index.js",
8
10
  "main": "dist/index.js",
9
11
  "files": [
10
12
  "dist"
@@ -12,6 +14,7 @@
12
14
  "scripts": {
13
15
  "checkUnknownFiles": "base checkUnknownFiles",
14
16
  "commit": "base commit",
17
+ "depcheck": "base depcheck",
15
18
  "dev": "base dev",
16
19
  "lint": "base lint",
17
20
  "prepare": "base prepare",
@@ -22,15 +25,15 @@
22
25
  "with-local-tmp-dir": "^4.0.0"
23
26
  },
24
27
  "devDependencies": {
25
- "@dword-design/base": "^8.0.0",
28
+ "@dword-design/base": "^9.2.0",
26
29
  "@dword-design/functions": "^4.0.0",
27
30
  "@dword-design/tester": "^2.0.0",
28
31
  "depcheck-package-name": "^2.0.0",
29
32
  "execa": "^5.0.0",
30
- "fs-extra": "^10.0.0"
33
+ "output-files": "^2.0.10"
31
34
  },
32
35
  "engines": {
33
- "node": ">=12"
36
+ "node": ">=14"
34
37
  },
35
38
  "publishConfig": {
36
39
  "access": "public"