@sequencemedia/hooks 1.1.113 → 1.1.138
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/.circleci/config.yml +1 -1
- package/husky.mjs +16 -0
- package/package.json +6 -6
package/.circleci/config.yml
CHANGED
|
@@ -9,7 +9,7 @@ jobs:
|
|
|
9
9
|
- run:
|
|
10
10
|
name: Publish to NPM
|
|
11
11
|
command: |
|
|
12
|
-
|
|
12
|
+
export NPM_ID_TOKEN=$(circleci run oidc get --claims '{"aud": "npm:registry.npmjs.org"}')
|
|
13
13
|
echo ".publish" >> .npmignore
|
|
14
14
|
git clone https://github.com/sequencemedia/publish.git .publish
|
|
15
15
|
.publish/publish.sh
|
package/husky.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
Promise.resolve(import('husky'))
|
|
5
|
+
.then(({ default: husky }) => { husky() })
|
|
6
|
+
.catch((e) => {
|
|
7
|
+
if (e instanceof Error) {
|
|
8
|
+
if ('code' in e) {
|
|
9
|
+
const { code } = e
|
|
10
|
+
if (code === 'ERR_MODULE_NOT_FOUND') return
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const { message } = e
|
|
14
|
+
if (message) console.error(`💥 ${message}`)
|
|
15
|
+
}
|
|
16
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequencemedia/hooks",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.138",
|
|
4
4
|
"description": "Git Hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/sequencemedia/hooks"
|
|
23
|
+
"url": "git+https://github.com/sequencemedia/hooks.git"
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/sequencemedia/hooks#readme",
|
|
26
26
|
"bugs": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"scripts": {
|
|
30
30
|
"lint": "eslint .",
|
|
31
31
|
"lint:fix": "npm run lint -- --fix",
|
|
32
|
-
"prepare": "husky"
|
|
32
|
+
"prepare": "node husky.mjs"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"debug": "^4.4.3"
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@sequencemedia/eslint-config-standard": "^0.2.107",
|
|
39
39
|
"@sequencemedia/eslint-config-typescript": "^0.1.182",
|
|
40
|
-
"@types/debug": "^4.1.
|
|
41
|
-
"@types/node": "^
|
|
40
|
+
"@types/debug": "^4.1.13",
|
|
41
|
+
"@types/node": "^26.4.1",
|
|
42
42
|
"eslint": "9.38.0",
|
|
43
|
-
"globals": "^
|
|
43
|
+
"globals": "^17.12.0",
|
|
44
44
|
"husky": "^9.1.7"
|
|
45
45
|
},
|
|
46
46
|
"imports": {
|