Skip to content

Commit 55e8ff6

Browse files
author
React-Admin CI
committed
[chore] Compile packages for es2020 instead of es5
1 parent 3769674 commit 55e8ff6

4 files changed

Lines changed: 9 additions & 4 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,6 @@ 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+
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
66
"lib": [
77
"es2017",
8-
"dom"
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)