1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 20:51:20 +02:00

Nodejs 13 compat and eslint/prettier glob fix (#3149)

This commit is contained in:
DamareYoh
2019-11-28 14:32:26 -08:00
committed by Ian Storm Taylor
parent 6608a5df39
commit 4bbbfba142
5 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ function configure(pkg, env, target) {
runtimeHelpers: true, runtimeHelpers: true,
include: [`packages/${pkg.name}/src/**`], include: [`packages/${pkg.name}/src/**`],
extensions: ['.js', '.ts'], extensions: ['.js', '.ts'],
configFile: './config/babel/babel.config.js', configFile: './config/babel/babel.config.cjs',
}), }),
// Register Node.js globals for browserify compatibility. // Register Node.js globals for browserify compatibility.

View File

@@ -14,8 +14,8 @@
"fix:eslint": "yarn lint:eslint --fix", "fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "yarn lint:prettier --write", "fix:prettier": "yarn lint:prettier --write",
"lint": "yarn lint:eslint && yarn lint:prettier", "lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint './{packages,site}/**/*.{js,jsx,ts,tsx}'", "lint:eslint": "eslint ./{packages,site}/**/*.{js,jsx,ts,tsx}",
"lint:prettier": "prettier --list-different '**/*.{css,md,js,jsx,json,ts,tsx}'", "lint:prettier": "prettier --list-different **/*.{css,md,js,jsx,json,ts,tsx}",
"open": "open http://localhost:3000", "open": "open http://localhost:3000",
"release": "NODE_ENV=production yarn build:rollup && yarn test && lerna publish", "release": "NODE_ENV=production yarn build:rollup && yarn test && lerna publish",
"serve": "cd ./site && next", "serve": "cd ./site && next",