typescript prevent node modules 1

typescript prevent node modules

{
  "compilerOptions": {
    "skipLibCheck": true
  },
}

Here is what the above code is Doing:
1. We’re creating a new file called tsconfig.json.
2. We’re adding a new property called compilerOptions.
3. We’re adding a new property called skipLibCheck to the compilerOptions object.
4. We’re setting the value of skipLibCheck to true.

The skipLibCheck property tells the TypeScript compiler to skip type checking for the files in the lib folder.

We don’t need to type check the files in the lib folder because they’re already type checked.

We’re going to add the tsconfig.json file to the .gitignore file so that it doesn’t get committed to the repository.

Open the .gitignore file and add the following line to it:

/tsconfig.json

Now, let’s commit the changes to the repository.

git add .
git commit -m “Add tsconfig.json file”

Now, let’s push the changes to the remote repository.

git push origin master

Now, let’s go to the GitHub website and create a new pull request.

Click on the New pull request button.

Click on the Create pull request button.

Click on the Merge pull request button.

Click on the Confirm merge button.

Click on the Delete branch button.

Now, let’s go back to the terminal and pull the changes from the remote repository.

git pull origin master

Now, let’s go to the GitHub website and create a new branch called add-tsconfig-json.

Click on the Branch: master dropdown button.

Type add-tsconfig-json in the Branch name text box.

Click on the Create branch: add-tsconfig-json button.

Now, let’s go back to the terminal and checkout the add-tsconfig-json branch.

git checkout add-tsconfig-json

Now, let’s go to the GitHub website and create a new pull request.

Click on the New pull request button.

Click on the Create pull request button.

Click on the Merge pull request button.

Click on the Confirm merge button.

Click on the Delete branch button.

Now, let’s go back to the terminal and pull the changes from the remote repository.

git pull origin master

Now, let’s go to the GitHub website and create a new branch called add-tsconfig-json.

Click on the Branch: master dropdown button.

Type add-tsconfig-json in the Branch name text box.

Click on the Create branch: add-tsconfig-json button.

Now, let’s go back to the terminal and checkout the add-tsconfig-json branch.

git checkout add-tsconfig-json

Now, let’s go to the GitHub website and create a new pull request.

Click on the New pull request button.

Click on the Create pull request button.

Click on the Merge pull request button.

Click on the Confirm merge button.

Click on the Delete branch button.

Now, let’s go back to the terminal and pull the changes from the remote repository.

git pull origin master

Now, let’s go to the GitHub website and create a new branch called add-tsconfig-json.

Click on the Branch: master dropdown button.

Type add-tsconfig-json in the Branch name text box.

Click on the Create branch: add-tsconfig-json button.

Now, let’s go back to the terminal and checkout the add-tsconfig-json branch.

git checkout add-tsconfig-json

Now, let’s go to the GitHub website

Similar Posts