create-forgeon 0.1.7 → 0.1.9

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.9",
4
4
  "description": "Forgeon project generator CLI",
5
5
  "license": "MIT",
6
6
  "author": "Forgeon",
@@ -106,6 +106,24 @@ 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
+
121
+ const i18nWebSource = fs.readFileSync(
122
+ path.join(projectRoot, 'packages', 'i18n-web', 'src', 'index.ts'),
123
+ 'utf8',
124
+ );
125
+ assert.match(i18nWebSource, /@forgeon\/i18n-contracts\/src\/index/);
126
+
109
127
  const caddyDockerfile = fs.readFileSync(
110
128
  path.join(projectRoot, 'infra', 'docker', 'caddy.Dockerfile'),
111
129
  '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": {
@@ -3,7 +3,7 @@ import {
3
3
  I18N_LOCALES,
4
4
  LANG_QUERY_PARAM,
5
5
  type I18nLocale,
6
- } from '@forgeon/i18n-contracts';
6
+ } from '@forgeon/i18n-contracts/src/index';
7
7
 
8
8
  const LOCALE_STORAGE_KEY = 'forgeon.locale';
9
9
 
@@ -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
  },