@dword-design/tester-plugin-tmp-dir 2.1.6 → 2.1.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -19
  2. package/package.json +7 -4
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.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"