Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit f60bdd6

Browse files
committed
chore: change scripts
1 parent cad1f1b commit f60bdd6

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"url": "https://github.com/geekdada/a-translator-chrome-extension"
99
},
1010
"scripts": {
11-
"start": "node utils/webserver.js",
12-
"build": "NODE_ENV=production webpack",
11+
"start": "cross-env NODE_ENV=development node scripts/webserver.js",
12+
"build": "cross-env NODE_ENV=production webpack",
1313
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx,css,html}'"
1414
},
1515
"dependencies": {
@@ -52,6 +52,7 @@
5252
"clsx": "^1.1.1",
5353
"connect.io": "^3.1.3",
5454
"copy-webpack-plugin": "^6.4.0",
55+
"cross-env": "^7.0.3",
5556
"css-loader": "^5.0.1",
5657
"dotenv": "^8.2.0",
5758
"eslint": "^7.16.0",
File renamed without changes.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Do this as the first thing so that any code reading it knows the right env.
2-
process.env.BABEL_ENV = 'development'
3-
process.env.NODE_ENV = 'development'
41
process.env.ASSET_PATH = '/'
52

63
const WebpackDevServer = require('webpack-dev-server'),

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const env = require('./utils/env')
1+
const env = require('./scripts/env')
22

33
const webpack = require('webpack')
44
const path = require('path')

yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2864,6 +2864,13 @@ create-emotion@10.0.27:
28642864
"@emotion/sheet" "0.9.4"
28652865
"@emotion/utils" "0.11.3"
28662866

2867+
cross-env@^7.0.3:
2868+
version "7.0.3"
2869+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
2870+
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
2871+
dependencies:
2872+
cross-spawn "^7.0.1"
2873+
28672874
cross-spawn@^6.0.0:
28682875
version "6.0.5"
28692876
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
@@ -2875,7 +2882,7 @@ cross-spawn@^6.0.0:
28752882
shebang-command "^1.2.0"
28762883
which "^1.2.9"
28772884

2878-
cross-spawn@^7.0.2, cross-spawn@^7.0.3:
2885+
cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
28792886
version "7.0.3"
28802887
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
28812888
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==

0 commit comments

Comments
 (0)