@ms-cloudpack/path-utilities 3.1.33 → 3.2.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.
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/sourceFilesGlobs.d.ts +5 -0
- package/lib/sourceFilesGlobs.d.ts.map +1 -1
- package/lib/sourceFilesGlobs.js +10 -26
- package/lib/sourceFilesGlobs.js.map +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { findPackageRoot } from './findPackageRoot.js';
|
|
2
2
|
export { formatLocation } from './formatLocation.js';
|
|
3
3
|
export { globSourceFiles } from './globSourceFiles.js';
|
|
4
|
-
export { sourceFilesGlobs } from './sourceFilesGlobs.js';
|
|
4
|
+
export { sourceFilesGlobs, alwaysExcludeGlobs } from './sourceFilesGlobs.js';
|
|
5
5
|
export { intermediateToSourcePath } from './intermediateToSourcePath.js';
|
|
6
6
|
export { isFile } from './isFile.js';
|
|
7
7
|
export { isFileSync } from './isFileSync.js';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACpH,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { findPackageRoot } from './findPackageRoot.js';
|
|
2
2
|
export { formatLocation } from './formatLocation.js';
|
|
3
3
|
export { globSourceFiles } from './globSourceFiles.js';
|
|
4
|
-
export { sourceFilesGlobs } from './sourceFilesGlobs.js';
|
|
4
|
+
export { sourceFilesGlobs, alwaysExcludeGlobs } from './sourceFilesGlobs.js';
|
|
5
5
|
export { intermediateToSourcePath } from './intermediateToSourcePath.js';
|
|
6
6
|
export { isFile } from './isFile.js';
|
|
7
7
|
export { isFileSync } from './isFileSync.js';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACpH,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { findPackageRoot } from './findPackageRoot.js';\nexport { formatLocation } from './formatLocation.js';\nexport { globSourceFiles } from './globSourceFiles.js';\nexport { sourceFilesGlobs, alwaysExcludeGlobs } from './sourceFilesGlobs.js';\nexport { intermediateToSourcePath } from './intermediateToSourcePath.js';\nexport { isFile } from './isFile.js';\nexport { isFileSync } from './isFileSync.js';\nexport { isFolder } from './isFolder.js';\nexport { isFolderSync } from './isFolderSync.js';\nexport { normalizedPathRelativeTo } from './normalizedPathRelativeTo.js';\nexport { pathSymbolReplacement } from './pathSymbolReplacement.js';\nexport { javascriptExtensions, jsxExtensions, sourceExtensions, typescriptExtensions } from './sourceExtensions.js';\nexport { sourceToIntermediatePath } from './sourceToIntermediatePath.js';\nexport { findProjectRoot } from './findProjectRoot.js';\nexport { isExternalPackage } from './isExternalPackage.js';\nexport { resolve } from './resolve.js';\nexport { resolveModule } from './resolveModule.js';\n"]}
|
|
@@ -3,4 +3,9 @@
|
|
|
3
3
|
* Used for file watching and hashing of internal packages.
|
|
4
4
|
*/
|
|
5
5
|
export declare const sourceFilesGlobs: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Negated globs for paths (such as `node_modules`) that should always be excluded from source
|
|
8
|
+
* files regardless of user settings.
|
|
9
|
+
*/
|
|
10
|
+
export declare const alwaysExcludeGlobs: string[];
|
|
6
11
|
//# sourceMappingURL=sourceFilesGlobs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceFilesGlobs.d.ts","sourceRoot":"","sources":["../src/sourceFilesGlobs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sourceFilesGlobs.d.ts","sourceRoot":"","sources":["../src/sourceFilesGlobs.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,UAAiF,CAAC;AAE/G;;;GAGG;AACH,eAAO,MAAM,kBAAkB,UAA0B,CAAC"}
|
package/lib/sourceFilesGlobs.js
CHANGED
|
@@ -1,36 +1,20 @@
|
|
|
1
1
|
import { sourceExtensions } from './sourceExtensions.js';
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
'!**/test/**',
|
|
6
|
-
'!**/tests/**',
|
|
7
|
-
'!**/*.test.*',
|
|
8
|
-
'!**/dist/**',
|
|
9
|
-
'!**/build/**',
|
|
10
|
-
'!**/out/**',
|
|
11
|
-
'!**/*.d.ts',
|
|
12
|
-
'!**/*.map',
|
|
13
|
-
];
|
|
14
|
-
const sourceExtensionsGlob = sourceExtensions.map((ext) => `**/*${ext}`);
|
|
2
|
+
const ignoreDirs = ['node_modules', 'dist', 'build', 'out', 'test', 'tests', '__test*'];
|
|
3
|
+
const defaultIgnorePaths = [`!**/{${ignoreDirs.join(',')}}/**`, '!**/*.{test.*,d.ts,map}'];
|
|
4
|
+
const sourceExtensionsGlob = `**/*.{${sourceExtensions.map((ext) => ext.slice(1)).join(',')}}`;
|
|
15
5
|
/**
|
|
16
6
|
* Other file extensions to watch.
|
|
17
7
|
* These are not source files, but might affect the bundle output.
|
|
18
8
|
*/
|
|
19
|
-
const otherExtensionsGlob =
|
|
20
|
-
'**/*.json',
|
|
21
|
-
'**/*.css',
|
|
22
|
-
'**/*.scss',
|
|
23
|
-
'**/*.sass',
|
|
24
|
-
'**/*.graphql',
|
|
25
|
-
'**/*.htm',
|
|
26
|
-
'**/*.html',
|
|
27
|
-
'**/*.txt',
|
|
28
|
-
'**/*.md',
|
|
29
|
-
'**/*.mdx',
|
|
30
|
-
];
|
|
9
|
+
const otherExtensionsGlob = `**/*.{json,css,scss,sass,graphql,htm,html,txt,md,mdx}`;
|
|
31
10
|
/**
|
|
32
11
|
* All valid source file globs.
|
|
33
12
|
* Used for file watching and hashing of internal packages.
|
|
34
13
|
*/
|
|
35
|
-
export const sourceFilesGlobs = ['src/**/*',
|
|
14
|
+
export const sourceFilesGlobs = ['src/**/*', sourceExtensionsGlob, otherExtensionsGlob, ...defaultIgnorePaths];
|
|
15
|
+
/**
|
|
16
|
+
* Negated globs for paths (such as `node_modules`) that should always be excluded from source
|
|
17
|
+
* files regardless of user settings.
|
|
18
|
+
*/
|
|
19
|
+
export const alwaysExcludeGlobs = ['!**/node_modules/**'];
|
|
36
20
|
//# sourceMappingURL=sourceFilesGlobs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceFilesGlobs.js","sourceRoot":"","sources":["../src/sourceFilesGlobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,
|
|
1
|
+
{"version":3,"file":"sourceFilesGlobs.js","sourceRoot":"","sources":["../src/sourceFilesGlobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,UAAU,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAExF,MAAM,kBAAkB,GAAG,CAAC,QAAQ,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;AAE3F,MAAM,oBAAoB,GAAG,SAAS,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AAE/F;;;GAGG;AACH,MAAM,mBAAmB,GAAG,uDAAuD,CAAC;AAEpF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,UAAU,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GAAG,kBAAkB,CAAC,CAAC;AAE/G;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["import { sourceExtensions } from './sourceExtensions.js';\n\nconst ignoreDirs = ['node_modules', 'dist', 'build', 'out', 'test', 'tests', '__test*'];\n\nconst defaultIgnorePaths = [`!**/{${ignoreDirs.join(',')}}/**`, '!**/*.{test.*,d.ts,map}'];\n\nconst sourceExtensionsGlob = `**/*.{${sourceExtensions.map((ext) => ext.slice(1)).join(',')}}`;\n\n/**\n * Other file extensions to watch.\n * These are not source files, but might affect the bundle output.\n */\nconst otherExtensionsGlob = `**/*.{json,css,scss,sass,graphql,htm,html,txt,md,mdx}`;\n\n/**\n * All valid source file globs.\n * Used for file watching and hashing of internal packages.\n */\nexport const sourceFilesGlobs = ['src/**/*', sourceExtensionsGlob, otherExtensionsGlob, ...defaultIgnorePaths];\n\n/**\n * Negated globs for paths (such as `node_modules`) that should always be excluded from source\n * files regardless of user settings.\n */\nexport const alwaysExcludeGlobs = ['!**/node_modules/**'];\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/path-utilities",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Path utilities for Cloudpack.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"workspace-tools": "^0.38.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@ms-cloudpack/common-types": "^0.
|
|
34
|
+
"@ms-cloudpack/common-types": "^0.33.0",
|
|
35
35
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
36
36
|
"@ms-cloudpack/scripts": "^0.0.1",
|
|
37
37
|
"@ms-cloudpack/test-utilities": "^0.5.0"
|