fs-realpath-native 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.0.2 (2022-10-18)
7
+
8
+
9
+
10
+ ### 📦 Code Refactoring
11
+
12
+ * { realpathSync => realpathSync.native } ([252c33e](https://github.com/bluelovers/ws-iconv/commit/252c33eff4a210e243ce6d8c4a968ad12bb1fbaf))
13
+
14
+
15
+ ### ♻️ Chores
16
+
17
+ * **release:** publish ([e6dea90](https://github.com/bluelovers/ws-iconv/commit/e6dea90eaa22e331d180711d3ec4c4d430fce071))
18
+
19
+
20
+ ### 🔖 Miscellaneous
21
+
22
+ * . ([4f93586](https://github.com/bluelovers/ws-iconv/commit/4f935869e8c34060553109cc23e9f0e4d6003878))
23
+
24
+
25
+
6
26
  ## 1.0.1 (2022-10-18)
7
27
 
8
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fs-realpath-native",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "create-by-yarn-tool"
@@ -17,7 +17,7 @@
17
17
  "license": "ISC",
18
18
  "author": "bluelovers",
19
19
  "sideEffects": false,
20
- "main": "jest.config.js",
20
+ "main": "index.js",
21
21
  "directories": {
22
22
  "test": "test"
23
23
  },
@@ -62,5 +62,5 @@
62
62
  "tsc:showConfig": "ynpx get-current-tsconfig -p"
63
63
  },
64
64
  "packageManager": "yarn@1.22.19",
65
- "gitHead": "e6dea90eaa22e331d180711d3ec4c4d430fce071"
65
+ "gitHead": "dad74824f6b50a4c43468565188d4b1b1d88a225"
66
66
  }
package/jest.config.js DELETED
@@ -1,116 +0,0 @@
1
- // @ts-check
2
-
3
- const { basename, extname, dirname } = require('path');
4
-
5
- /**
6
- * // @type { import('@jest/types').Config.InitialOptions }
7
- * @type { import('ts-jest').InitialOptionsTsJest }
8
- */
9
- let jestConfig = {
10
-
11
- }
12
-
13
- /**
14
- * @param {string} name
15
- * @returns {string}
16
- * @private
17
- */
18
- function _requireResolve(name)
19
- {
20
- let result;
21
-
22
- try
23
- {
24
- // @ts-ignore
25
- const { requireResolveExtra, requireResolveCore } = require('@yarn-tool/require-resolve');
26
-
27
- const paths = [
28
- requireResolveExtra('@bluelovers/tsdx').result,
29
- requireResolveExtra('tsdx').result,
30
- ].filter(Boolean);
31
-
32
- result = requireResolveCore(name, {
33
- includeGlobal: true,
34
- includeCurrentDirectory: true,
35
- paths,
36
- })
37
- }
38
- catch (e)
39
- {
40
-
41
- }
42
-
43
- result = result || require.resolve(name);
44
-
45
- console.info('[require.resolve]', name, '=>', result)
46
-
47
- return result
48
- }
49
-
50
- let _ok = true;
51
-
52
- try
53
- {
54
- if (!jestConfig.preset)
55
- {
56
-
57
- let result = require('@yarn-tool/ws-find-up-paths').findUpPathsWorkspaces([
58
- 'jest-preset.js',
59
- 'jest.config.js',
60
- ], {
61
- ignoreCurrentPackage: true,
62
- onlyFiles: true,
63
- }).result;
64
-
65
- if (result)
66
- {
67
- let name = basename(result, extname(result))
68
-
69
- switch (name)
70
- {
71
- case 'jest-preset':
72
- jestConfig.preset = dirname(result);
73
- break;
74
- default:
75
- jestConfig = {
76
- ...require(result),
77
- jestConfig,
78
- };
79
- break;
80
- }
81
-
82
- _ok = false;
83
- }
84
- }
85
- }
86
- catch (e)
87
- {
88
-
89
- }
90
-
91
- try
92
- {
93
- if (_ok && !jestConfig.preset)
94
- {
95
- let result = _requireResolve('@bluelovers/jest-config/package.json');
96
- if (result)
97
- {
98
- jestConfig.preset = dirname(result);
99
- _ok = false;
100
- }
101
- }
102
- }
103
- catch (e)
104
- {
105
-
106
- }
107
-
108
- if (_ok && !jestConfig.preset)
109
- {
110
- jestConfig.preset = '@bluelovers/jest-config';
111
- _ok = false;
112
- }
113
-
114
- console.info(`jest.config.preset: ${jestConfig.preset}`);
115
-
116
- module.exports = jestConfig