From 6452307d77b4a52fb55104a7818fbd196e493eda Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Fri, 5 Sep 2025 07:23:12 +0000 Subject: [PATCH] modify the example node.js projects to use the es module type --- provision/use-npm-repository.sh | 2 ++ provision/windows/use-npm-repository.ps1 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/provision/use-npm-repository.sh b/provision/use-npm-repository.sh index b847ba5..1d76123 100644 --- a/provision/use-npm-repository.sh +++ b/provision/use-npm-repository.sh @@ -36,6 +36,7 @@ cat >package.json <<'EOF' "description": "the classic hello world", "version": "1.0.0", "license": "MIT", + "type": "module", "main": "hello-world.js", "repository": { "type": "git", @@ -79,6 +80,7 @@ cat >package.json <<'EOF' "description": "use the classic hello world", "version": "1.0.0", "license": "MIT", + "type": "module", "repository": { "type": "git", "url": "https://git.example.com/use-hello-world.git" diff --git a/provision/windows/use-npm-repository.ps1 b/provision/windows/use-npm-repository.ps1 index da93af7..6c6348f 100644 --- a/provision/windows/use-npm-repository.ps1 +++ b/provision/windows/use-npm-repository.ps1 @@ -58,6 +58,7 @@ Set-Content ` "description": "the classic hello world", "version": "1.0.0", "license": "MIT", + "type": "module", "main": "hello-world-win.js", "repository": { "type": "git", @@ -109,6 +110,7 @@ Set-Content ` "description": "use the classic hello world", "version": "1.0.0", "license": "MIT", + "type": "module", "repository": { "type": "git", "url": "https://git.example.com/use-hello-world-win.git"