intlayer-cli 2.0.13 → 3.0.1

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/README.md CHANGED
@@ -39,20 +39,20 @@ npm install intlayer-cli
39
39
  ```
40
40
 
41
41
  ```bash
42
- yarn install intlayer-cli
42
+ yarn add intlayer-cli
43
43
  ```
44
44
 
45
45
  ```bash
46
- pnpm install intlayer-cli
46
+ pnpm add intlayer-cli
47
47
  ```
48
48
 
49
49
  ## intlayer-cli package
50
50
 
51
- `intlayer-cli` package intend to transpile your [intlayer](https://github.com/aypineau/intlayer/blob/main/packages/intlayer/readme_en.md) declarations into dictionaries.
51
+ `intlayer-cli` package intend to transpile your [intlayer](https://github.com/aymericzip/intlayer/blob/main/packages/intlayer/readme_en.md) declarations into dictionaries.
52
52
 
53
- This package will transpile all intlayer files, such as `src/**/*.content.{ts|js|mjs|cjs|json}`. [See how to declare your Intlayer declaration files](https://github.com/aypineau/intlayer/blob/main/packages/intlayer/readme_en.md).
53
+ This package will transpile all intlayer files, such as `src/**/*.content.{ts|js|mjs|cjs|json}`. [See how to declare your Intlayer declaration files](https://github.com/aymericzip/intlayer/blob/main/packages/intlayer/readme_en.md).
54
54
 
55
- To interpret intlayer dictionaries you can interpreters, such as [react-intlayer](https://github.com/aypineau/intlayer/blob/main/packages/react-intlayer/readme_en.md), or [next-intlayer](https://github.com/aypineau/intlayer/blob/main/packages/next-intlayer/readme_en.md)
55
+ To interpret intlayer dictionaries you can interpreters, such as [react-intlayer](https://github.com/aymericzip/intlayer/blob/main/packages/react-intlayer/readme_en.md), or [next-intlayer](https://github.com/aymericzip/intlayer/blob/main/packages/next-intlayer/readme_en.md)
56
56
 
57
57
  ## Configuration File Support
58
58
 
@@ -65,27 +65,27 @@ Intlayer accepts multiple configuration file formats:
65
65
  - `intlayer.config.mjs`
66
66
  - `.intlayerrc`
67
67
 
68
- To see how to configure available locales, or other parameters, refer to the [configuration documentation here](https://github.com/aypineau/intlayer/blob/main/docs/docs/configuration_en.md).
68
+ To see how to configure available locales, or other parameters, refer to the [configuration documentation here](https://github.com/aymericzip/intlayer/blob/main/docs/docs/configuration_en.md).
69
69
 
70
70
  ### Run intlayer commands
71
71
 
72
72
  To build your dictionaries, you can run the commands:
73
73
 
74
74
  ```bash
75
- npx intlayer transpile
75
+ npx intlayer build
76
76
  ```
77
77
 
78
78
  or in watch mode
79
79
 
80
80
  ```bash
81
- npx intlayer watch
81
+ npx intlayer build --watch
82
82
  ```
83
83
 
84
84
  ### Use intlayer commands in your `package.json`:
85
85
 
86
86
  ```json
87
87
  "scripts": {
88
- "transpile": "npx intlayer transpile",
89
- "transpile:watch": "npx intlayer watch"
88
+ "transpile": "npx intlayer build",
89
+ "transpile:watch": "npx intlayer build --watch"
90
90
  }
91
91
  ```
@@ -1,10 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- var import_chokidar = require("@intlayer/chokidar");
4
3
  var import_cli = require("@intlayer/cli");
5
- (0, import_cli.setAPI)({
6
- version: "1.0.0",
7
- transpile: () => (0, import_chokidar.watch)({ persistent: false }),
8
- watch: () => (0, import_chokidar.watch)({ persistent: true })
9
- });
4
+ (0, import_cli.setAPI)();
10
5
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { watch } from '@intlayer/chokidar';\nimport { setAPI } from '@intlayer/cli';\n\n// Log the compiler options\nsetAPI({\n version: '1.0.0',\n transpile: () => watch({ persistent: false }),\n watch: () => watch({ persistent: true }),\n});\n"],"mappings":";;AAEA,sBAAsB;AACtB,iBAAuB;AAAA,IAGvB,mBAAO;AAAA,EACL,SAAS;AAAA,EACT,WAAW,UAAM,uBAAM,EAAE,YAAY,MAAM,CAAC;AAAA,EAC5C,OAAO,UAAM,uBAAM,EAAE,YAAY,KAAK,CAAC;AACzC,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { setAPI } from '@intlayer/cli';\n\n// Log the compiler options\nsetAPI();\n"],"mappings":";;AAEA,iBAAuB;AAAA,IAGvB,mBAAO;","names":[]}
@@ -1,9 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { watch } from "@intlayer/chokidar";
3
2
  import { setAPI } from "@intlayer/cli";
4
- setAPI({
5
- version: "1.0.0",
6
- transpile: () => watch({ persistent: false }),
7
- watch: () => watch({ persistent: true })
8
- });
3
+ setAPI();
9
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { watch } from '@intlayer/chokidar';\nimport { setAPI } from '@intlayer/cli';\n\n// Log the compiler options\nsetAPI({\n version: '1.0.0',\n transpile: () => watch({ persistent: false }),\n watch: () => watch({ persistent: true }),\n});\n"],"mappings":";AAEA,SAAS,aAAa;AACtB,SAAS,cAAc;AAGvB,OAAO;AAAA,EACL,SAAS;AAAA,EACT,WAAW,MAAM,MAAM,EAAE,YAAY,MAAM,CAAC;AAAA,EAC5C,OAAO,MAAM,MAAM,EAAE,YAAY,KAAK,CAAC;AACzC,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { setAPI } from '@intlayer/cli';\n\n// Log the compiler options\nsetAPI();\n"],"mappings":";AAEA,SAAS,cAAc;AAGvB,OAAO;","names":[]}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer-cli",
3
- "version": "2.0.13",
3
+ "version": "3.0.1",
4
4
  "private": false,
5
5
  "description": "IntLayer is a layer of abstraction between the business logic and the data access layer. Manage internationalization in a simple way, through TypeScript, JavaScript or JSON declaration file.",
6
6
  "keywords": [
@@ -14,27 +14,27 @@
14
14
  ],
15
15
  "homepage": "https://intlayer.org",
16
16
  "bugs": {
17
- "url": "https://github.com/aypineau/intlayer/issues"
17
+ "url": "https://github.com/aymericzip/intlayer/issues"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://github.com/aypineau/intlayer.git"
21
+ "url": "git+https://github.com/aymericzip/intlayer.git"
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "author": {
25
25
  "name": "Aymeric PINEAU",
26
- "url": "https://github.com/aypineau"
26
+ "url": "https://github.com/aymericzip"
27
27
  },
28
28
  "contributors": [
29
29
  {
30
30
  "name": "Aymeric Pineau",
31
31
  "email": "ay.pineau@gmail.com",
32
- "url": "https://github.com/aypineau"
32
+ "url": "https://github.com/aymericzip"
33
33
  }
34
34
  ],
35
35
  "exports": {
36
36
  ".": {
37
- "types": "./dist/esm/index.d.mts",
37
+ "types": "./dist/types/index.d.ts",
38
38
  "require": "./dist/cjs/index.cjs",
39
39
  "import": "./dist/esm/index.mjs"
40
40
  },
@@ -42,6 +42,7 @@
42
42
  },
43
43
  "main": "dist/cjs/index.cjs",
44
44
  "module": "dist/esm/index.mjs",
45
+ "types": "dist/types/index.d.ts",
45
46
  "typesVersions": {
46
47
  "*": {
47
48
  "package.json": [
@@ -58,37 +59,43 @@
58
59
  ],
59
60
  "dependencies": {
60
61
  "webpack": "^5.92.1",
61
- "@intlayer/chokidar": "^2.0.13",
62
- "@intlayer/cli": "^2.0.13",
63
- "@intlayer/config": "^2.0.13",
64
- "@intlayer/core": "^2.0.13"
62
+ "@intlayer/cli": "^3.0.1"
65
63
  },
66
64
  "devDependencies": {
67
65
  "@changesets/changelog-github": "0.5.0",
68
66
  "@changesets/cli": "2.27.1",
69
67
  "@types/node": "^20.14.9",
68
+ "concurrently": "^8.2.2",
69
+ "eslint": "^9.11.1",
70
+ "prettier": "3.3.3",
70
71
  "rimraf": "5.0.5",
71
- "tsup": "^8.1.0",
72
+ "tsc-alias": "^1.8.10",
73
+ "tsup": "^8.3.0",
72
74
  "typescript": "^5.5.2",
73
75
  "@utils/eslint-config": "^1.0.4",
74
- "@utils/ts-config": "^1.0.4"
76
+ "@utils/ts-config": "^1.0.4",
77
+ "@utils/ts-config-types": "^1.0.4",
78
+ "@utils/tsup-config": "^1.0.4"
75
79
  },
76
80
  "engines": {
77
81
  "node": ">=14.18"
78
82
  },
79
83
  "bug": {
80
- "url": "https://github.com/aypineau/intlayer/issues"
84
+ "url": "https://github.com/aymericzip/intlayer/issues"
81
85
  },
82
86
  "scripts": {
83
- "build": "tsup",
87
+ "build": "pnpm build:package & pnpm build:types",
88
+ "build:package": "tsup",
89
+ "build:types": "tsc --project ./tsconfig.types.json && tsc-alias --project ./tsconfig.types.json",
84
90
  "clean": "rimraf ./dist",
85
- "dev": "tsup --watch",
86
- "lint": "eslint . --ext .ts,.tsx,.js,.jsx,.cjs,.mjs",
87
- "lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx,.cjs,.mjs --fix",
88
- "prettier:fix": "prettier --write src/**/*",
91
+ "dev": "concurrently --prefix none \"tsup --watch\" \"tsc --project ./tsconfig.types.json --watch\" \"tsc-alias --project ./tsconfig.types.json --watch\"",
92
+ "lint": "eslint . --cache",
93
+ "lint:fix": "eslint . --cache --fix",
94
+ "prettier": "prettier . --check",
95
+ "prettier:fix": "prettier . --write",
89
96
  "serve": "webpack serve --config ./webpack.config.ts",
90
97
  "transpile": "webpack --config ./webpack.config.ts",
91
- "typecheck": "tsup--project ./tsconfig.json --noEmit",
98
+ "typecheck": "tsup --project ./tsconfig.json --noEmit",
92
99
  "watch": "webpack --config ./webpack.config.ts --watch"
93
100
  }
94
101
  }
@@ -1 +0,0 @@
1
- #!/usr/bin/env node
@@ -1 +0,0 @@
1
- #!/usr/bin/env node