Skip to content

Commit 6e94c5f

Browse files
committedSep 21, 2023
Added babel/ts commands
1 parent 78dc9a0 commit 6e94c5f

File tree

3 files changed

+85
-80
lines changed

3 files changed

+85
-80
lines changed
 

‎babel.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"],
3-
"plugins": [["@babel/plugin-transform-runtime"]]
3+
"plugins": ["@babel/plugin-transform-runtime", "@babel/plugin-transform-typescript"]
44
}

‎package.json

+65-60
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,67 @@
11
{
2-
"name": "react-admin-mui-datepickers",
3-
"version": "1.0.0",
4-
"description": "MUI date/time pickers for use in react-admin applications",
5-
"main": "lib/index.js",
6-
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1",
8-
"lint": "eslint .",
9-
"lint:fix": "eslint . --fix",
10-
"lint:staged": "lint-staged"
11-
},
12-
"repository": {
13-
"type": "git",
14-
"url": "git+https://github.com/ZachSelindh/react-admin-mui-datepickers.git"
15-
},
16-
"keywords": [
17-
"react",
18-
"react-admin",
19-
"mui",
20-
"picker"
21-
],
22-
"author": "zachSelindh",
23-
"license": "MIT",
24-
"bugs": {
25-
"url": "https://github.com/ZachSelindh/react-admin-mui-datepickers/issues"
26-
},
27-
"homepage": "https://github.com/ZachSelindh/react-admin-mui-datepickers#readme",
28-
"devDependencies": {
29-
"@babel/cli": "^7.22.15",
30-
"@babel/core": "^7.22.20",
31-
"@babel/plugin-transform-runtime": "^7.22.15",
32-
"@babel/preset-env": "^7.22.20",
33-
"@babel/preset-react": "^7.22.15",
34-
"@babel/preset-typescript": "^7.22.15",
35-
"@typescript-eslint/eslint-plugin": "^6.7.2",
36-
"@typescript-eslint/parser": "^6.7.2",
37-
"eslint": "^8.49.0",
38-
"eslint-config-airbnb": "^19.0.4",
39-
"eslint-config-airbnb-typescript": "^17.1.0",
40-
"eslint-config-prettier": "^9.0.0",
41-
"eslint-config-react-app": "^7.0.1",
42-
"eslint-plugin-html": "^7.1.0",
43-
"eslint-plugin-import": "^2.28.1",
44-
"eslint-plugin-jsx-a11y": "^6.7.1",
45-
"eslint-plugin-react": "^7.33.2",
46-
"eslint-plugin-react-hooks": "^4.6.0",
47-
"lint-staged": "^14.0.1",
48-
"prettier": "^3.0.3",
49-
"typescript": "^5.2.2"
50-
},
51-
"peerDependencies": {
52-
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
53-
"react-admin": "^4.0.0"
54-
},
55-
"dependencies": {
56-
"@mui/icons-material": "^5.0.1",
57-
"@mui/material": "^5.0.2",
58-
"@mui/x-date-pickers": "^6.0.0",
59-
"clsx": "^1.1.1",
60-
"prop-types": "^15.7.0"
61-
}
2+
"name": "react-admin-mui-datepickers",
3+
"version": "1.0.0",
4+
"description": "MUI date/time pickers for use in react-admin applications",
5+
"main": "lib/index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"lint": "eslint .",
9+
"lint:fix": "eslint . --fix",
10+
"lint:staged": "lint-staged",
11+
"type-check": "tsc --noEmit",
12+
"type-check:watch": "npm run type-check -- --watch",
13+
"build": "npm run build:types && npm run build:js",
14+
"build:types": "tsc --emitDeclarationOnly",
15+
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline"
16+
},
17+
"repository": {
18+
"type": "git",
19+
"url": "git+https://github.com/ZachSelindh/react-admin-mui-datepickers.git"
20+
},
21+
"keywords": [
22+
"react",
23+
"react-admin",
24+
"mui",
25+
"picker"
26+
],
27+
"author": "zachSelindh",
28+
"license": "MIT",
29+
"bugs": {
30+
"url": "https://github.com/ZachSelindh/react-admin-mui-datepickers/issues"
31+
},
32+
"homepage": "https://github.com/ZachSelindh/react-admin-mui-datepickers#readme",
33+
"devDependencies": {
34+
"@babel/cli": "^7.22.15",
35+
"@babel/core": "^7.22.20",
36+
"@babel/plugin-transform-runtime": "^7.22.15",
37+
"@babel/preset-env": "^7.22.20",
38+
"@babel/preset-react": "^7.22.15",
39+
"@babel/preset-typescript": "^7.22.15",
40+
"@typescript-eslint/eslint-plugin": "^6.7.2",
41+
"@typescript-eslint/parser": "^6.7.2",
42+
"eslint": "^8.49.0",
43+
"eslint-config-airbnb": "^19.0.4",
44+
"eslint-config-airbnb-typescript": "^17.1.0",
45+
"eslint-config-prettier": "^9.0.0",
46+
"eslint-config-react-app": "^7.0.1",
47+
"eslint-plugin-html": "^7.1.0",
48+
"eslint-plugin-import": "^2.28.1",
49+
"eslint-plugin-jsx-a11y": "^6.7.1",
50+
"eslint-plugin-react": "^7.33.2",
51+
"eslint-plugin-react-hooks": "^4.6.0",
52+
"lint-staged": "^14.0.1",
53+
"prettier": "^3.0.3",
54+
"typescript": "^5.2.2"
55+
},
56+
"peerDependencies": {
57+
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
58+
"react-admin": "^4.0.0"
59+
},
60+
"dependencies": {
61+
"@mui/icons-material": "^5.0.1",
62+
"@mui/material": "^5.0.2",
63+
"@mui/x-date-pickers": "^6.0.0",
64+
"clsx": "^1.1.1",
65+
"prop-types": "^15.7.0"
66+
}
6267
}

‎tsconfig.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"compilerOptions": {
3-
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"esModuleInterop": true,
8-
"noImplicitAny": false,
9-
"allowSyntheticDefaultImports": true,
10-
"strict": false,
11-
"forceConsistentCasingInFileNames": true,
12-
"noFallthroughCasesInSwitch": true,
13-
"module": "esnext",
14-
"moduleResolution": "node",
15-
"resolveJsonModule": true,
16-
"isolatedModules": true,
17-
"noEmit": true,
18-
"jsx": "react-jsx"
19-
},
20-
"include": ["src"]
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"esModuleInterop": true,
8+
"noImplicitAny": false,
9+
"allowSyntheticDefaultImports": true,
10+
"strict": false,
11+
"forceConsistentCasingInFileNames": true,
12+
"noFallthroughCasesInSwitch": true,
13+
"module": "esnext",
14+
"moduleResolution": "node",
15+
"resolveJsonModule": true,
16+
"isolatedModules": true,
17+
"declaration": true,
18+
"jsx": "react-jsx"
19+
},
20+
"include": ["src"]
2121
}

0 commit comments

Comments
 (0)
Please sign in to comment.