pattern-algebra 0.0.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/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/package.json +41 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pattern Algebra - TypeScript library for path pattern algebra.
|
|
3
|
+
*
|
|
4
|
+
* This package re-exports all functionality from `@pattern-algebra/core`.
|
|
5
|
+
* Use this package for a simpler import path.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { parsePattern, compilePattern, matchPath } from 'pattern-algebra'
|
|
10
|
+
*
|
|
11
|
+
* const pattern = compilePattern(parsePattern('src/**\/*.ts'))
|
|
12
|
+
* matchPath('/src/index.ts', pattern) // true
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
export * from '@pattern-algebra/core';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,uBAAuB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pattern Algebra - TypeScript library for path pattern algebra.
|
|
3
|
+
*
|
|
4
|
+
* This package re-exports all functionality from `@pattern-algebra/core`.
|
|
5
|
+
* Use this package for a simpler import path.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { parsePattern, compilePattern, matchPath } from 'pattern-algebra'
|
|
10
|
+
*
|
|
11
|
+
* const pattern = compilePattern(parsePattern('src/**\/*.ts'))
|
|
12
|
+
* matchPath('/src/index.ts', pattern) // true
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
export * from '@pattern-algebra/core';
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,uBAAuB,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pattern-algebra",
|
|
3
|
+
"description": "TypeScript library for path pattern algebra - parsing, matching, and set operations on glob patterns",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"author": "Mike North <michael.north@gmail.com>",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@pattern-algebra/core": "0.0.0"
|
|
8
|
+
},
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"typescript": "5.8.2"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public",
|
|
25
|
+
"registry": "https://registry.npmjs.org"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/mike-north/pattern-algebra.git",
|
|
30
|
+
"directory": "packages/pattern-algebra"
|
|
31
|
+
},
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"type": "module",
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc -b",
|
|
37
|
+
"check": "pnpm check:typecheck",
|
|
38
|
+
"check:typecheck": "tsc --noEmit",
|
|
39
|
+
"clean": "rm -rf dist && rm -f *.tsbuildinfo tsconfig.tsbuildinfo"
|
|
40
|
+
}
|
|
41
|
+
}
|