Skip to content

Commit

Permalink
Merge pull request #19 from forcedotcom/mdonnalley/tsconfig-esm
Browse files Browse the repository at this point in the history
feat: add esm tsconfigs
  • Loading branch information
WillieRuemmele authored Oct 25, 2023
2 parents 09e0a8e + edbb348 commit ee293ad
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@salesforce/dev-config",
"version": "4.0.1",
"version": "4.0.2-dev.1",
"description": "A set of standard typescript config and tslint options for Salesforce projects.",
"repository": "forcedotcom/dev-config",
"main": "index.js",
Expand All @@ -18,6 +18,10 @@
"/tsconfig-strict.json",
"/tsconfig-test.json",
"/tsconfig-test-strict.json",
"/tsconfig-esm.json",
"/tsconfig-strict-esm.json",
"/tsconfig-test-esm.json",
"/tsconfig-test-strict-esm.json",
"/prettier.json",
"/nyc.json",
"/typedoc.js"
Expand All @@ -29,4 +33,4 @@
"devDependencies": {
"shx": "^0.3.2"
}
}
}
15 changes: 15 additions & 0 deletions tsconfig-esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"lib": ["ES2022"],
"sourceMap": true,
"declaration": true,
"moduleResolution": "Node16",
"alwaysStrict": true,
"noUnusedLocals": true
},
"ts-node": {
"esm": true
}
}
6 changes: 6 additions & 0 deletions tsconfig-strict-esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig-esm",
"compilerOptions": {
"strict": true
}
}
6 changes: 6 additions & 0 deletions tsconfig-test-esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig-esm",
"compilerOptions": {
"noEmit": true
}
}
6 changes: 6 additions & 0 deletions tsconfig-test-strict-esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig-strict-esm",
"compilerOptions": {
"noEmit": true
}
}

0 comments on commit ee293ad

Please sign in to comment.