Skip to content

Commit 340d4ab

Browse files
authored
Merge pull request #11136 from marmelab/es2020
[chore] Compile packages for es2020 instead of es5
2 parents cad5198 + 56345f0 commit 340d4ab

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ cypress/downloads
2727
.env
2828
.claude/settings.local.json
2929
.npmrc
30+
/packs

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,7 @@ check-documentation-videos-format: ## Check the documentation format
190190

191191
release: ## Start the release process and publish the packages to npm using lerna
192192
./scripts/release.sh
193+
194+
pack: ## Create NPM packages for all publishable packages in ./packs
195+
mkdir -p packs
196+
yarn workspaces foreach -A --no-private pack --out ../../packs/%s-%v.tar.gz

docs_headless/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "ra-core-doc",
3+
"private": true,
34
"type": "module",
45
"version": "0.0.1",
56
"scripts": {

tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"compilerOptions": {
33
/* Basic Options */
4-
"target": "ES5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
4+
"target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
55
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
66
"lib": [
7-
"es2017",
8-
"dom"
7+
"ES2020",
8+
"dom",
99
] /* Specify library files to be included in the compilation. */,
1010
"allowJs": true /* Allow javascript files to be compiled. */,
1111
// "checkJs": true, /* Report errors in .js files. */
1212
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
1313
"declaration": true /* Generates corresponding '.d.ts' file. */,
14-
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
14+
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
1515
"sourceMap": true /* Generates corresponding '.map' file. */,
1616
// "outFile": "./", /* Concatenate and emit output to single file. */
1717
// "outDir": "./lib", /* Redirect output structure to the directory. */
@@ -59,8 +59,8 @@
5959
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
6060
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
6161
"skipLibCheck": true,
62-
"erasableSyntaxOnly": true
63-
}
62+
"erasableSyntaxOnly": true,
63+
},
6464
// "references": [
6565
// { "path": "./packages/ra-core" },
6666
// { "path": "./packages/ra-data-fakerest" },

0 commit comments

Comments
 (0)