@deot/dev-shared 2.2.0 → 2.4.0

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.
@@ -85,6 +85,7 @@ const logger = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
85
85
 
86
86
  const SPACE = " ";
87
87
  const binDirectory = path__namespace.resolve(process.cwd(), "./node_modules/.bin");
88
+ /* istanbul ignore next -- @preserve */
88
89
  const LOCAL_COMMAND_MAP = fs__namespace.existsSync(binDirectory) ? fs__namespace.readdirSync(binDirectory).reduce((pre, file) => {
89
90
  const fullpath = path__namespace.resolve(binDirectory, file);
90
91
  const stat = fs__namespace.statSync(fullpath);
@@ -161,6 +162,7 @@ const getNormalizePackage = (dataMap) => {
161
162
  const result = [];
162
163
  while (queue.length > 0) {
163
164
  const node = queue.shift();
165
+ /* istanbul ignore next -- @preserve */
164
166
  if (!node)
165
167
  return [];
166
168
  result.push(node);
@@ -185,6 +187,7 @@ const getPackageName = (packageFolderName$) => {
185
187
  };
186
188
  const getPackageFolderName = (packageName$) => {
187
189
  const { workspace, packageFolderName, packageName } = impl();
190
+ /* istanbul ignore next -- @preserve */
188
191
  if (!workspace)
189
192
  return "";
190
193
  if (packageName$ === packageName)
package/dist/index.es.js CHANGED
@@ -59,6 +59,7 @@ const logger = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
59
59
 
60
60
  const SPACE = " ";
61
61
  const binDirectory = path.resolve(process.cwd(), "./node_modules/.bin");
62
+ /* istanbul ignore next -- @preserve */
62
63
  const LOCAL_COMMAND_MAP = fs.existsSync(binDirectory) ? fs.readdirSync(binDirectory).reduce((pre, file) => {
63
64
  const fullpath = path.resolve(binDirectory, file);
64
65
  const stat = fs.statSync(fullpath);
@@ -135,6 +136,7 @@ const getNormalizePackage = (dataMap) => {
135
136
  const result = [];
136
137
  while (queue.length > 0) {
137
138
  const node = queue.shift();
139
+ /* istanbul ignore next -- @preserve */
138
140
  if (!node)
139
141
  return [];
140
142
  result.push(node);
@@ -159,6 +161,7 @@ const getPackageName = (packageFolderName$) => {
159
161
  };
160
162
  const getPackageFolderName = (packageName$) => {
161
163
  const { workspace, packageFolderName, packageName } = impl();
164
+ /* istanbul ignore next -- @preserve */
162
165
  if (!workspace)
163
166
  return "";
164
167
  if (packageName$ === packageName)
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@deot/dev-shared",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
+ "type": "module",
4
5
  "main": "dist/index.es.js",
5
6
  "types": "dist/index.d.ts",
6
- "type": "module",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.es.js",
10
+ "require": "./dist/index.cjs",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
7
14
  "files": [
8
15
  "dist"
9
16
  ],