modify the example node.js projects to use the es module type

This commit is contained in:
Rui Lopes 2025-09-05 07:23:12 +00:00
parent 92ab9966d5
commit 6452307d77
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ cat >package.json <<'EOF'
"description": "the classic hello world", "description": "the classic hello world",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"type": "module",
"main": "hello-world.js", "main": "hello-world.js",
"repository": { "repository": {
"type": "git", "type": "git",
@ -79,6 +80,7 @@ cat >package.json <<'EOF'
"description": "use the classic hello world", "description": "use the classic hello world",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"type": "module",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.example.com/use-hello-world.git" "url": "https://git.example.com/use-hello-world.git"

View File

@ -58,6 +58,7 @@ Set-Content `
"description": "the classic hello world", "description": "the classic hello world",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"type": "module",
"main": "hello-world-win.js", "main": "hello-world-win.js",
"repository": { "repository": {
"type": "git", "type": "git",
@ -109,6 +110,7 @@ Set-Content `
"description": "use the classic hello world", "description": "use the classic hello world",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"type": "module",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.example.com/use-hello-world-win.git" "url": "https://git.example.com/use-hello-world-win.git"