Skip to content

Commit

Permalink
2023-09-18T11:55:04.418Z
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpocock committed Sep 18, 2023
1 parent b8fa06a commit b1c67f6
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "117-const-enums.explainer",
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "nodemon --exec \"tsc && node dist/index.mjs\" ./src/index.mts"
},
"keywords": [],
"author": "Matt Pocock",
"devDependencies": {},
"type": "module"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const hello = () => {
console.log("Hello!");
};

// @ts-expect-error
export default hello;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// @ts-expect-error
import esModule from "./esm-module.js";

const main = async () => {
esModule();
};

main();
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "dist",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"isolatedModules": true,
"verbatimModuleSyntax": true
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "117-const-enums.explainer",
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "nodemon --exec \"tsc && node dist/index.mjs\" ./src/index.mts"
},
"keywords": [],
"author": "Matt Pocock",
"devDependencies": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const hello = () => {
console.log("Hello!");
};

// @ts-expect-error
export default hello;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// @ts-expect-error
import esModule from "./esm-module.js";

const main = async () => {
esModule();
};

main();
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "dist",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"isolatedModules": true,
"verbatimModuleSyntax": true
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "117-const-enums.explainer",
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "nodemon --exec \"tsc && node dist/index.mjs\" ./src/index.mts"
},
"keywords": [],
"author": "Matt Pocock",
"devDependencies": {},
"type": "module"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const hello = () => {
console.log("Hello!");
};

// @ts-expect-error
export default hello;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// @ts-expect-error
import esModule from "./esm-module.js";

const main = async () => {
esModule();
};

main();
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "dist",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"isolatedModules": true,
"verbatimModuleSyntax": true
},
}

0 comments on commit b1c67f6

Please sign in to comment.