Skip to content

Commit 68faab3

Browse files
update a package few script and update a jason file
1 parent a46148d commit 68faab3

File tree

2 files changed

+52
-13
lines changed

2 files changed

+52
-13
lines changed

package.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
{
22
"name": "@lastcode/3dmodel_reactjs_nextjs",
33
"version": "0.1.0",
4+
"description": "A custom lib for ThreeD View",
5+
"author": "lastcode802",
6+
"main": "./lib/index.js",
7+
"directories": {
8+
"lib": "lib"
9+
},
10+
"files": [
11+
"lib"
12+
],
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/lastcode802/3dmodel_reactjs_nextjs"
16+
},
417
"private": true,
518
"dependencies": {
619
"@testing-library/jest-dom": "^5.16.5",
@@ -22,9 +35,10 @@
2235
"homepage": "http://lastcode802.github.io/3dmodel_reactjs_nextjs/",
2336
"scripts": {
2437
"start": "react-scripts start",
25-
"build": "react-scripts build",
38+
"react_build": "react-scripts build",
2639
"test": "react-scripts test --coverage ./src",
2740
"eject": "react-scripts eject",
41+
"build": "tsc --build ./tsconfig.json",
2842
"storybook": "start-storybook -p 6006 -s public",
2943
"build-storybook": "build-storybook -s public",
3044
"predeploy": "npm run build-storybook",

tsconfig.json

+37-12
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,50 @@
22
"compilerOptions": {
33
"target": "es5",
44
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
5+
"ES2020",
6+
"dom"
87
],
9-
"allowJs": true,
10-
"skipLibCheck": true,
11-
"esModuleInterop": true,
12-
"allowSyntheticDefaultImports": true,
8+
"outDir": "lib",
9+
"jsx": "react-jsx",
10+
"module": "CommonJS",
11+
"declaration": true,
12+
"declarationMap": true,
13+
"sourceMap": true,
1314
"strict": true,
14-
"forceConsistentCasingInFileNames": true,
15+
"noImplicitAny": false,
16+
"strictNullChecks": true,
17+
"strictFunctionTypes": true,
18+
"strictPropertyInitialization": true,
19+
"noImplicitThis": true,
20+
"alwaysStrict": true,
21+
"noUnusedLocals": true,
22+
"noUnusedParameters": true,
23+
"noImplicitReturns": true,
1524
"noFallthroughCasesInSwitch": true,
16-
"module": "esnext",
1725
"moduleResolution": "node",
1826
"resolveJsonModule": true,
19-
"isolatedModules": false,
20-
"noEmit": true,
21-
"jsx": "react-jsx"
27+
"esModuleInterop": true,
28+
"allowSyntheticDefaultImports": true,
29+
"allowJs": true,
30+
"skipLibCheck": true,
31+
"forceConsistentCasingInFileNames": true,
32+
"isolatedModules": true,
33+
"noEmit": false,
34+
"paths": {
35+
"react": [ "./node_modules/@types/react" ]
36+
}
2237
},
2338
"include": [
2439
"src"
40+
],
41+
"exclude": [
42+
"node_modules",
43+
"**/*.test.ts",
44+
"**/*.test.tsx",
45+
"**/*.stories.tsx",
46+
"./src/setupTests.ts"
47+
],
48+
"files": [
49+
"./src/index.tsx"
2550
]
2651
}

0 commit comments

Comments
 (0)