@dword-design/tester-plugin-tmp-dir 2.1.6 → 2.1.8

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 +4 -19
  2. package/package.json +8 -5
package/dist/index.js CHANGED
@@ -1,24 +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 => ({
1
+ import withLocalTmpDir from 'with-local-tmp-dir';
2
+ export default (options => ({
13
3
  async afterEach() {
14
4
  await this.resetWithLocalTmpDir();
15
5
  },
16
-
17
6
  async beforeEach() {
18
- this.resetWithLocalTmpDir = await (0, _withLocalTmpDir.default)(options);
7
+ this.resetWithLocalTmpDir = await withLocalTmpDir(options);
19
8
  }
20
-
21
- });
22
-
23
- exports.default = _default;
24
- 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.6",
3
+ "version": "2.1.8",
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",
@@ -19,18 +22,18 @@
19
22
  "test": "base test"
20
23
  },
21
24
  "dependencies": {
22
- "with-local-tmp-dir": "^4.0.0"
25
+ "with-local-tmp-dir": "^5.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"