Navigation Menu

Skip to content

Commit

Permalink
format umd and add postbuild script
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrouid committed Feb 12, 2020
1 parent b05994d commit 7e93720
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -31,7 +31,8 @@
},
"scripts": {
"start": "tsdx watch",
"build": "tsdx build --format cjs",
"postbuild": "bash ./ops/postbuild.sh",
"build": "tsdx build --format umd --name index && yarn postbuild",
"test": "tsdx test",
"lint": "tsdx lint src test",
"prepare": "yarn lint && yarn build && yarn test"
Expand Down
30 changes: 19 additions & 11 deletions tsconfig.json
@@ -1,30 +1,38 @@
{
"include": ["src", "types", "test"],
"compilerOptions": {
"target": "es5",
"rootDir": "./",
"baseUrl": "./",
"module": "esnext",
"target": "es5",
"lib": ["dom", "esnext"],
"importHelpers": true,
"strict": true,
"composite": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"rootDir": "./",
"strict": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"downlevelIteration": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"preserveSymlinks": true,
"importHelpers": true,
"strictNullChecks": true,
"alwaysStrict": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"baseUrl": "./",
"resolveJsonModule": true,
"paths": {
"*": ["src/*", "node_modules/*"]
},
"jsx": "react",
"esModuleInterop": true
"jsx": "react"
}
}

0 comments on commit 7e93720

Please sign in to comment.