modify the example node.js projects to use the es module type
This commit is contained in:
parent
92ab9966d5
commit
6452307d77
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue