@modernpoacher/nunjucks 3.0.496 → 3.1.0

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.
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
- npm run post-commit
4
+ npx cross-env DEBUG=@modernpoacher/hooks* node .husky/post-commit.mjs
@@ -0,0 +1,8 @@
1
+ module.exports = (
2
+ import('@modernpoacher/hooks')
3
+ .then(({
4
+ postCommit
5
+ }) => (
6
+ postCommit()
7
+ ))
8
+ )
@@ -0,0 +1,5 @@
1
+ import {
2
+ postCommit
3
+ } from '@modernpoacher/hooks'
4
+
5
+ export default postCommit()
package/.husky/pre-commit CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
- npm run pre-commit
4
+ npm run lint
5
+ git add *.js
package/babel.config.js CHANGED
@@ -34,8 +34,6 @@ module.exports = (api) => {
34
34
  if (api) api.cache.using(env)
35
35
 
36
36
  return {
37
- compact: true,
38
- comments: false,
39
37
  presets
40
38
  }
41
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/nunjucks",
3
- "version": "3.0.496",
3
+ "version": "3.1.0",
4
4
  "description": "Nunjucks for Hapi",
5
5
  "keywords": [
6
6
  "hapi",
@@ -18,29 +18,23 @@
18
18
  },
19
19
  "scripts": {
20
20
  "lint": "eslint .",
21
- "lint:fix": "npm run lint -- --fix",
22
- "gulp": "gulp --color",
23
- "pre-commit": "npm run lint && git add *.js",
24
- "post-commit": "cross-env DEBUG=@modernpoacher/hooks,@modernpoacher/hooks:* npm run gulp -- post-commit"
21
+ "lint:fix": "npm run lint -- --fix"
25
22
  },
26
23
  "dependencies": {
27
24
  "debug": "^4.3.4"
28
25
  },
29
26
  "devDependencies": {
30
27
  "@babel/cli": "^7.21.5",
31
- "@babel/core": "^7.21.5",
32
- "@babel/eslint-parser": "^7.21.3",
28
+ "@babel/core": "^7.21.8",
29
+ "@babel/eslint-parser": "^7.21.8",
33
30
  "@babel/preset-env": "^7.21.5",
34
- "@babel/register": "^7.21.0",
35
- "@modernpoacher/hooks": "^1.0.387",
36
- "babel-loader": "^9.1.2",
31
+ "@modernpoacher/hooks": "^1.0.391",
37
32
  "core-js": "^3.30.1",
38
33
  "eslint": "^8.39.0",
39
34
  "eslint-config-standard": "^17.0.0",
40
35
  "eslint-plugin-import": "^2.27.5",
41
36
  "eslint-plugin-node": "^11.1.0",
42
37
  "eslint-plugin-promise": "^6.1.1",
43
- "gulp": "^4.0.2",
44
38
  "husky": "^8.0.3"
45
39
  },
46
40
  "peerDependencies": {