Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
fix: Add skipLibCheck to tsconfig.json
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>
  • Loading branch information
vitaliy-guliy authored and benoitf committed Jun 4, 2021
1 parent a59e26a commit ab51700
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 92 deletions.
132 changes: 66 additions & 66 deletions templates/base/package.json
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
{
"name": "<%= params.packageName %>",
"publisher": "<%= params.publisher %>",
"keywords": [
"theia-plugin"
],
"version": "<%= params.version %>",<%
if (params.description) { %>
"description": "<%= params.description %>",
<%} %><%
if (params.author) { %>
"author": "<%= params.author %>",
<% } %><%
if (params.license) { %>
"license": "<%= params.license.id %>",
<% } %><%
if (params.githubURL) { %>
"repository": {
"type": "git",
"url": "<%= params.githubURL %>.git"
},
"bugs": {
"url": "<%= params.githubURL %>/issues"
},
"homepage": "<%= params.githubURL %>",<% } %>
"files": [
"src"
],
"activationEvents": [
"*"
],
"devDependencies": {
"@theia/plugin": "<%= params.theiaVersion %>",
"@theia/plugin-packager": "latest",
"rimraf": "2.6.2",
"typescript-formatter": "7.2.2",
"typescript": "3.5.3"<%
if (params.isFrontend) { %>,
"ts-loader": "^4.1.0",
"clean-webpack-plugin": "^0.1.19",
"webpack": "^4.1.1",
"webpack-cli": "^3.1.1"<% } %>
},
"scripts": {
"prepare": "yarn run clean && yarn run build",
"clean": "rimraf lib",
"format-code": "tsfmt -r",<%
if (params.isFrontend) { %>
"watch": "webpack-cli -w --config webpack.config.js",
"compile": "webpack-cli --config webpack.config.js",
<% } %><%
if (params.isBackend) { %>
"watch": "tsc -watch",
"compile": "tsc", <% } %>
"build": "yarn run format-code && yarn run compile && theia-plugin pack"
},
"engines": {
"theiaPlugin": "<%= params.theiaVersion %>"
},
"theiaPlugin": {
<% if (params.isFrontend) { %>
"frontend": "dist/<%= params.pluginDistPath %>"
<% } %>
<% if (params.isBackend) { %>
"backend": "lib/<%= params.pluginDistPath %>"
<% } %>
}
"name": "<%= params.packageName %>",
"publisher": "<%= params.publisher %>",
"keywords": [
"theia-plugin"
],
"version": "<%= params.version %>",<%
if (params.description) { %>
"description": "<%= params.description %>",
<%} %><%
if (params.author) { %>
"author": "<%= params.author %>",
<% } %><%
if (params.license) { %>
"license": "<%= params.license.id %>",
<% } %><%
if (params.githubURL) { %>
"repository": {
"type": "git",
"url": "<%= params.githubURL %>.git"
},
"bugs": {
"url": "<%= params.githubURL %>/issues"
},
"homepage": "<%= params.githubURL %>",<% } %>
"files": [
"src"
],
"activationEvents": [
"*"
],
"devDependencies": {
"@theia/plugin": "<%= params.theiaVersion %>",
"@theia/plugin-packager": "latest",
"rimraf": "2.6.2",
"typescript-formatter": "7.2.2",
"typescript": "3.5.3"<%
if (params.isFrontend) { %>,
"ts-loader": "^4.1.0",
"clean-webpack-plugin": "^0.1.19",
"webpack": "^4.1.1",
"webpack-cli": "^3.1.1"<% } %>
},
"scripts": {
"prepare": "yarn run clean && yarn run build",
"clean": "rimraf lib",
"format-code": "tsfmt -r",<%
if (params.isFrontend) { %>
"watch": "webpack-cli -w --config webpack.config.js",
"compile": "webpack-cli --config webpack.config.js",
<% } %><%
if (params.isBackend) { %>
"watch": "tsc -watch",
"compile": "tsc", <% } %>
"build": "yarn run format-code && yarn run compile && theia-plugin pack"
},
"engines": {
"theiaPlugin": "<%= params.theiaVersion %>"
},
"theiaPlugin": {
<% if (params.isFrontend) { %>
"frontend": "dist/<%= params.pluginDistPath %>"
<% } %>
<% if (params.isBackend) { %>
"backend": "lib/<%= params.pluginDistPath %>"
<% } %>
}
}
51 changes: 26 additions & 25 deletions templates/base/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"compilerOptions": {
"strict": true,
"experimentalDecorators": true,
"noUnusedLocals": true,
"emitDecoratorMetadata": true,
"downlevelIteration": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es6",
"lib": [
"es6",
<% if (params.isFrontend) { %>
"webworker"
<% } %>
<% if (params.isBackend) { %>
"webworker"
<%} %>
],
"sourceMap": true,
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src"
]
"compilerOptions": {
"strict": true,
"experimentalDecorators": true,
"noUnusedLocals": true,
"emitDecoratorMetadata": true,
"downlevelIteration": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es6",
"lib": [
"es6",
<% if (params.isFrontend) { %>
"webworker"
<% } %>
<% if (params.isBackend) { %>
"webworker"
<%} %>
],
"sourceMap": true,
"rootDir": "src",
"outDir": "lib",
"skipLibCheck": true
},
"include": [
"src"
]
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"sourceMap": true,
"rootDir": "src",
"outDir": "generators"
"outDir": "generators",
"skipLibCheck": true
},
"include": [
"src"
Expand Down

0 comments on commit ab51700

Please sign in to comment.