create-forgeon 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-forgeon",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Forgeon project generator CLI",
5
5
  "license": "MIT",
6
6
  "author": "Forgeon",
@@ -106,6 +106,18 @@ describe('addModule', () => {
106
106
  assert.match(appTsx, /@forgeon\/i18n-web/);
107
107
  assert.match(appTsx, /Language:/);
108
108
 
109
+ const i18nWebPackage = fs.readFileSync(
110
+ path.join(projectRoot, 'packages', 'i18n-web', 'package.json'),
111
+ 'utf8',
112
+ );
113
+ assert.match(i18nWebPackage, /"type": "module"/);
114
+
115
+ const i18nWebTsconfig = fs.readFileSync(
116
+ path.join(projectRoot, 'packages', 'i18n-web', 'tsconfig.json'),
117
+ 'utf8',
118
+ );
119
+ assert.match(i18nWebTsconfig, /"module": "ESNext"/);
120
+
109
121
  const caddyDockerfile = fs.readFileSync(
110
122
  path.join(projectRoot, 'infra', 'docker', 'caddy.Dockerfile'),
111
123
  'utf8',
@@ -2,6 +2,7 @@
2
2
  "name": "@forgeon/i18n-web",
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
+ "type": "module",
5
6
  "main": "dist/index.js",
6
7
  "types": "dist/index.d.ts",
7
8
  "scripts": {
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "extends": "../../tsconfig.base.json",
3
3
  "compilerOptions": {
4
+ "module": "ESNext",
4
5
  "rootDir": "src",
5
6
  "outDir": "dist"
6
7
  },