mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 12:41:44 +02:00
Nodejs 13 compat and eslint/prettier glob fix (#3149)
This commit is contained in:
committed by
Ian Storm Taylor
parent
6608a5df39
commit
4bbbfba142
@@ -88,7 +88,7 @@ function configure(pkg, env, target) {
|
||||
runtimeHelpers: true,
|
||||
include: [`packages/${pkg.name}/src/**`],
|
||||
extensions: ['.js', '.ts'],
|
||||
configFile: './config/babel/babel.config.js',
|
||||
configFile: './config/babel/babel.config.cjs',
|
||||
}),
|
||||
|
||||
// Register Node.js globals for browserify compatibility.
|
||||
|
@@ -14,8 +14,8 @@
|
||||
"fix:eslint": "yarn lint:eslint --fix",
|
||||
"fix:prettier": "yarn lint:prettier --write",
|
||||
"lint": "yarn lint:eslint && yarn lint:prettier",
|
||||
"lint:eslint": "eslint './{packages,site}/**/*.{js,jsx,ts,tsx}'",
|
||||
"lint:prettier": "prettier --list-different '**/*.{css,md,js,jsx,json,ts,tsx}'",
|
||||
"lint:eslint": "eslint ./{packages,site}/**/*.{js,jsx,ts,tsx}",
|
||||
"lint:prettier": "prettier --list-different **/*.{css,md,js,jsx,json,ts,tsx}",
|
||||
"open": "open http://localhost:3000",
|
||||
"release": "NODE_ENV=production yarn build:rollup && yarn test && lerna publish",
|
||||
"serve": "cd ./site && next",
|
||||
|
Reference in New Issue
Block a user