diff --git a/.gitignore b/.gitignore index d126ee9897..64e627ee57 100644 --- a/.gitignore +++ b/.gitignore @@ -72,5 +72,5 @@ tsconfig.json !/.github/workflows/upgrade-compiler-dependencies-1.x.yml !/.backportrc.json !/.github/workflows/backport.yml -!/src/_loadurl.js +!/src/_loadurl.mjs !/.projenrc.js diff --git a/.projen/tasks.json b/.projen/tasks.json index 6a29b01287..9d35b3402a 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -115,7 +115,7 @@ "exec": "jsii --silence-warnings=reserved-word" }, { - "exec": "cp src/_loadurl.js lib/" + "exec": "cp src/_loadurl.mjs lib/" } ] }, @@ -487,4 +487,4 @@ "PATH": "$(npx -c \"node --print process.env.PATH\")" }, "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} +} \ No newline at end of file diff --git a/.projenrc.js b/.projenrc.js index 30e63214f7..e05893aa41 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -47,10 +47,10 @@ const project = new Cdk8sTeamJsiiProject({ jsiiVersion: '^5', }); -// _loadurl.js is written in javascript so we need to commit it and also copy it +// _loadurl.mjs is written in javascript so we need to commit it and also copy it // after compilation to the `lib/` directory. -project.gitignore.include('/src/_loadurl.js'); -project.compileTask.exec('cp src/_loadurl.js lib/'); +project.gitignore.include('/src/_loadurl.mjs'); +project.compileTask.exec('cp src/_loadurl.mjs lib/'); const installHelm = project.addTask('install-helm', { exec: 'curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash',