NERDDISCO commited on
Commit
99c964b
•
1 Parent(s): 5ca4f87

fix(write-version): move the script into src so that it's available when building the docker image

Browse files
package.json CHANGED
@@ -29,7 +29,7 @@
29
  "dev": "next dev",
30
  "postinstall": "npm run write-version",
31
  "prepare": "husky install",
32
- "write-version": "node scripts/write-version.js"
33
  },
34
  "lint-staged": {
35
  "*.{ts,tsx,jsx}": [
 
29
  "dev": "next dev",
30
  "postinstall": "npm run write-version",
31
  "prepare": "husky install",
32
+ "write-version": "node src/scripts/write-version.js"
33
  },
34
  "lint-staged": {
35
  "*.{ts,tsx,jsx}": [
{scripts → src/scripts}/write-version.js RENAMED
@@ -1,5 +1,5 @@
1
  const fs = require('fs');
2
- const packageJson = require('../package.json');
3
 
4
  const envVars = `NEXT_PUBLIC_VERSION=${packageJson.version}\n`;
5
 
 
1
  const fs = require('fs');
2
+ const packageJson = require('../../package.json');
3
 
4
  const envVars = `NEXT_PUBLIC_VERSION=${packageJson.version}\n`;
5