summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-19 17:25:55 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-19 17:25:55 -0700
commit9b09981a7f9dba8915ba59b17f175a85fb13f778 (patch)
tree6f9dcb60c9631d19b597afa89f77d83510cf6c5e
parente1b3baaa784319b93ac351b31e79cf386d3e26da (diff)
Convert absolute to relative paths at build time
-rw-r--r--package-lock.json18
-rw-r--r--package.json6
-rw-r--r--tsconfig.json4
3 files changed, 26 insertions, 2 deletions
diff --git a/package-lock.json b/package-lock.json
index 0cc6fa8..13f6ee3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4537,6 +4537,15 @@
"yn": "3.1.1"
}
},
+ "ttypescript": {
+ "version": "1.5.10",
+ "resolved": "https://registry.npmjs.org/ttypescript/-/ttypescript-1.5.10.tgz",
+ "integrity": "sha512-Hk7TRej1hM+p+Fo+Pyb/XK9pe9CAt3Sh5n5YRutxFS8hUgkh2u1Vd2K40kMcNP3WYhiVFBMqXwM/2E8O95Ep6g==",
+ "dev": true,
+ "requires": {
+ "resolve": "^1.9.0"
+ }
+ },
"tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
@@ -4588,6 +4597,15 @@
"integrity": "sha512-q2ktq4n/uLuNNShyayit+DTobV2ApPEo/6so68JaD5ojvc/6GClBipedB9zNWYxRSAlZXAe405Rlijzl6qDiSw==",
"dev": true
},
+ "typescript-transform-paths": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/typescript-transform-paths/-/typescript-transform-paths-1.1.14.tgz",
+ "integrity": "sha512-oUXMH4D+GSqr/tGMlQVOB0RC9IUj1NokQVzRSbD+YeER5gR/U7vqj8KKrwuRSGd1xgKP/St+HjM8zoB57wVGDA==",
+ "dev": true,
+ "requires": {
+ "slash": "^3.0.0"
+ }
+ },
"union-value": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz",
diff --git a/package.json b/package.json
index 31a38ed..9a87486 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"license": "MIT",
"homepage": "https://github.com/MasterKale/webauthntine#readme",
"scripts": {
- "build": "rimraf dist && tsc",
+ "build": "rimraf dist && ttsc",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "npm test -- --coverage"
@@ -23,7 +23,9 @@
"rimraf": "^3.0.2",
"ts-jest": "^25.5.1",
"ts-node": "^8.10.1",
- "typescript": "^3.9.2"
+ "ttypescript": "^1.5.10",
+ "typescript": "^3.9.2",
+ "typescript-transform-paths": "^1.1.14"
},
"keywords": [
"webauthn"
diff --git a/tsconfig.json b/tsconfig.json
index b597580..748a5a0 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -13,6 +13,10 @@
"@libTypes": ["libTypes"],
"@helpers/*": ["helpers/*"],
},
+ "plugins": [
+ { "transform": "typescript-transform-paths" },
+ { "transform": "typescript-transform-paths", "afterDeclarations": true }
+ ]
},
"include": [
"src/**/*",