@sprucelabs/resolve-path-aliases 1.0.261 → 1.1.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/build/index.js +1 -1
- package/package.json +4 -4
package/build/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function resolvePathAliases(destination, options = {}) {
|
|
|
42
42
|
files.forEach((file) => {
|
|
43
43
|
let contents = fs_1.default.readFileSync(file).toString();
|
|
44
44
|
let found = false;
|
|
45
|
-
contents = `${contents}`.replace(/(from |import |require\()['"](#spruce\/(.*?))['"]/gi, (_, requireOrImport, match) => {
|
|
45
|
+
contents = `${contents}`.replace(/(from |import |import\(|require\()['"](#spruce\/(.*?))['"]/gi, (_, requireOrImport, match) => {
|
|
46
46
|
found = true;
|
|
47
47
|
const search = match;
|
|
48
48
|
let resolved;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/resolve-path-aliases",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Script that resolves paths from your tsconfig",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"repository": "git@github.com:sprucelabsai/resolve-path-aliases.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build/resolve-path-aliases.js"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build.ci": "yarn build.tsc && yarn copy-for-tests",
|
|
26
|
+
"build.ci": "yarn build.tsc && yarn copy-for-tests && yarn lint",
|
|
27
27
|
"build.copy-files": "true",
|
|
28
28
|
"build.dev": "npm run clean && npm run build.tsc --sourceMap && yarn copy-for-tests",
|
|
29
29
|
"build.dist": "npm run clean && npm run build.tsc && yarn copy-for-tests",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
66
|
-
"@sprucelabs/test": "^7.7.
|
|
66
|
+
"@sprucelabs/test": "^7.7.283",
|
|
67
67
|
"@types/fs-extra": "^9.0.13",
|
|
68
68
|
"@types/rimraf": "^3.0.2",
|
|
69
69
|
"chokidar-cli": "^3.0.0",
|
|
70
70
|
"concurrently": "^7.0.0",
|
|
71
|
-
"eslint": "^8.
|
|
71
|
+
"eslint": "^8.10.0",
|
|
72
72
|
"eslint-config-spruce": "^10.11.2",
|
|
73
73
|
"fs-extra": "^10.0.1",
|
|
74
74
|
"jest": "^27.5.1",
|