Cleanup local paths from extra fields

This commit is contained in:
CrazyMax 2020-05-07 00:12:11 +02:00
parent 13fd486dd7
commit f4dde9ecd5
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 14 additions and 6 deletions

12
package-lock.json generated
View File

@ -31,9 +31,9 @@
}
},
"@types/node": {
"version": "13.13.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.4.tgz",
"integrity": "sha512-x26ur3dSXgv5AwKS0lNfbjpCakGIduWU1DU91Zz58ONRWrIKGunmZBNv4P7N+e27sJkiGDsw/3fT4AtsqQBrBA==",
"version": "13.13.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.5.tgz",
"integrity": "sha512-3ySmiBYJPqgjiHA7oEaIo2Rzz0HrOZ7yrNO5HWyaE5q0lQ3BppDZ3N53Miz8bw2I7gh1/zir2MGVZBvpb1zq9g==",
"dev": true
},
"@zeit/ncc": {
@ -118,6 +118,12 @@
"integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
"dev": true
},
"removeNPMAbsolutePaths": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/removeNPMAbsolutePaths/-/removeNPMAbsolutePaths-2.0.0.tgz",
"integrity": "sha512-Hea7U6iJcD0NE/aqBqxBMPKeKaxjqMNyTTajmH2dH9hhafJ9Tem5r4UeJK8+BdE1MK9lqoOYqNM0Sq9rl1OIbQ==",
"dev": true
},
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",

View File

@ -6,7 +6,8 @@
"build": "tsc && ncc build",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"pre-checkin": "npm run format && npm run build"
"cleanup-paths": "removeNPMAbsolutePaths ./ --force --fields _where _args",
"pre-checkin": "npm run format && npm run cleanup-paths && npm run build"
},
"repository": {
"type": "git",
@ -28,10 +29,11 @@
"devDependencies": {
"@actions/io": "^1.0.2",
"@types/fs-extra": "^8.1.0",
"@types/node": "^13.13.4",
"@types/node": "^13.13.5",
"@zeit/ncc": "^0.22.1",
"prettier": "^2.0.5",
"removeNPMAbsolutePaths": "^2.0.0",
"typescript": "^3.8.3",
"typescript-formatter": "^7.2.2"
}
}
}