ts-swc-transform 2.7.1 → 2.7.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/dist/cjs/constants.js +1 -1
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/createMatcher.js +4 -2
- package/dist/cjs/createMatcher.js.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/createMatcher.js +4 -2
- package/dist/esm/createMatcher.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-swc-transform/src/constants.ts"],"sourcesContent":["export const moduleRegEx = /^[^./]|^\\.[^./]|^\\.\\.[^/]/;\nexport const typeFileRegEx =
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-swc-transform/src/constants.ts"],"sourcesContent":["export const moduleRegEx = /^[^./]|^\\.[^./]|^\\.\\.[^/]/;\nexport const typeFileRegEx = /\\.d\\.[cm]?ts$/;\nexport const extensions = ['.js', '.jsx', '.cjs', '.mjs', '.ts', '.tsx', '.cts', '.mts', '.es6', '.es'];\n"],"names":["extensions","moduleRegEx","typeFileRegEx"],"mappings":";;;;;;;;;;;QAEaA;eAAAA;;QAFAC;eAAAA;;QACAC;eAAAA;;;AADN,IAAMD,cAAc;AACpB,IAAMC,gBAAgB;AACtB,IAAMF,aAAa;IAAC;IAAO;IAAQ;IAAQ;IAAQ;IAAO;IAAQ;IAAQ;IAAQ;IAAQ;CAAM"}
|
|
@@ -16,10 +16,12 @@ function _interop_require_default(obj) {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
function createMatcher(tsconfig) {
|
|
19
|
+
var include = tsconfig.config.include || [];
|
|
20
|
+
var exclude = tsconfig.config.exclude || [];
|
|
19
21
|
return (0, _testmatch.default)({
|
|
20
22
|
cwd: _path.default.dirname(tsconfig.path),
|
|
21
|
-
include:
|
|
22
|
-
exclude:
|
|
23
|
+
include: include,
|
|
24
|
+
exclude: exclude
|
|
23
25
|
});
|
|
24
26
|
}
|
|
25
27
|
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-swc-transform/src/createMatcher.ts"],"sourcesContent":["import path from 'path';\nimport match from 'test-match';\nimport type { Matcher, TSConfig } from './types.ts';\n\nexport default function createMatcher(tsconfig: TSConfig): Matcher {\n
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-swc-transform/src/createMatcher.ts"],"sourcesContent":["import path from 'path';\nimport match from 'test-match';\nimport type { Matcher, TSConfig } from './types.ts';\n\nexport default function createMatcher(tsconfig: TSConfig): Matcher {\n const include = (tsconfig.config.include || []) as string[];\n const exclude = (tsconfig.config.exclude || []) as string[];\n return match({ cwd: path.dirname(tsconfig.path), include, exclude });\n}\n"],"names":["createMatcher","tsconfig","include","config","exclude","match","cwd","path","dirname"],"mappings":";;;;+BAIA;;;eAAwBA;;;2DAJP;gEACC;;;;;;AAGH,SAASA,cAAcC,QAAkB;IACtD,IAAMC,UAAWD,SAASE,MAAM,CAACD,OAAO,IAAI,EAAE;IAC9C,IAAME,UAAWH,SAASE,MAAM,CAACC,OAAO,IAAI,EAAE;IAC9C,OAAOC,IAAAA,kBAAK,EAAC;QAAEC,KAAKC,aAAI,CAACC,OAAO,CAACP,SAASM,IAAI;QAAGL,SAAAA;QAASE,SAAAA;IAAQ;AACpE"}
|
package/dist/esm/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-swc-transform/src/constants.ts"],"sourcesContent":["export const moduleRegEx = /^[^./]|^\\.[^./]|^\\.\\.[^/]/;\nexport const typeFileRegEx =
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-swc-transform/src/constants.ts"],"sourcesContent":["export const moduleRegEx = /^[^./]|^\\.[^./]|^\\.\\.[^/]/;\nexport const typeFileRegEx = /\\.d\\.[cm]?ts$/;\nexport const extensions = ['.js', '.jsx', '.cjs', '.mjs', '.ts', '.tsx', '.cts', '.mts', '.es6', '.es'];\n"],"names":["moduleRegEx","typeFileRegEx","extensions"],"mappings":"AAAA,OAAO,MAAMA,cAAc,4BAA4B;AACvD,OAAO,MAAMC,gBAAgB,gBAAgB;AAC7C,OAAO,MAAMC,aAAa;IAAC;IAAO;IAAQ;IAAQ;IAAQ;IAAO;IAAQ;IAAQ;IAAQ;IAAQ;CAAM,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import match from 'test-match';
|
|
3
3
|
export default function createMatcher(tsconfig) {
|
|
4
|
+
const include = tsconfig.config.include || [];
|
|
5
|
+
const exclude = tsconfig.config.exclude || [];
|
|
4
6
|
return match({
|
|
5
7
|
cwd: path.dirname(tsconfig.path),
|
|
6
|
-
include
|
|
7
|
-
exclude
|
|
8
|
+
include,
|
|
9
|
+
exclude
|
|
8
10
|
});
|
|
9
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-swc-transform/src/createMatcher.ts"],"sourcesContent":["import path from 'path';\nimport match from 'test-match';\nimport type { Matcher, TSConfig } from './types.ts';\n\nexport default function createMatcher(tsconfig: TSConfig): Matcher {\n
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-swc-transform/src/createMatcher.ts"],"sourcesContent":["import path from 'path';\nimport match from 'test-match';\nimport type { Matcher, TSConfig } from './types.ts';\n\nexport default function createMatcher(tsconfig: TSConfig): Matcher {\n const include = (tsconfig.config.include || []) as string[];\n const exclude = (tsconfig.config.exclude || []) as string[];\n return match({ cwd: path.dirname(tsconfig.path), include, exclude });\n}\n"],"names":["path","match","createMatcher","tsconfig","include","config","exclude","cwd","dirname"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,WAAW,aAAa;AAG/B,eAAe,SAASC,cAAcC,QAAkB;IACtD,MAAMC,UAAWD,SAASE,MAAM,CAACD,OAAO,IAAI,EAAE;IAC9C,MAAME,UAAWH,SAASE,MAAM,CAACC,OAAO,IAAI,EAAE;IAC9C,OAAOL,MAAM;QAAEM,KAAKP,KAAKQ,OAAO,CAACL,SAASH,IAAI;QAAGI;QAASE;IAAQ;AACpE"}
|