-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
30 lines (30 loc) · 1.33 KB
/
Copy pathpackage.json
File metadata and controls
30 lines (30 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"name": "block-bait-v1",
"private": true,
"scripts": {
"dev": "next dev",
"build:extension": "next build && next export && node -e \"const fs = require('fs'); const path = require('path'); const outDir = path.resolve(__dirname, 'out'); fs.readdirSync(outDir).forEach(file => { if (file.startsWith('_next') || file.startsWith('_app') || file.startsWith('_document')) { fs.renameSync(path.join(outDir, file), path.join(outDir, file.replace(/^_/, ''))); } }); fs.readdirSync(outDir).filter(file => file.endsWith('.html')).forEach(file => { const filePath = path.join(outDir, file); let fileContent = fs.readFileSync(filePath, 'utf8'); fileContent = fileContent.replace(/_next\\//g, 'next/'); fs.writeFileSync(filePath, fileContent); });\""
},
"dependencies": {
"chrome-extension-async": "^3.4.1",
"classnames": "^2.3.2",
"css-loader": "^6.7.3",
"next": "12.1.6",
"next-compose-plugins": "^2.2.1",
"next-transpile-modules": "^10.0.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"webpack-cli": "^5.0.2"
},
"devDependencies": {
"@types/chrome": "^0.0.193",
"autoprefixer": "^10.4.14",
"eslint": "8.16.0",
"eslint-config-next": "12.1.6",
"npm-watch": "^0.11.0",
"postcss": "^8.4.23",
"postcss-loader": "^7.3.0",
"postcss-preset-env": "^8.3.2",
"tailwindcss": "^3.3.2"
}
}