@intlayer/webpack 2.0.12 → 3.0.0

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.
@@ -0,0 +1,3 @@
1
+ import type { EntryObject } from 'webpack';
2
+ export declare const getEntries: () => EntryObject;
3
+ //# sourceMappingURL=getEntries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEntries.d.ts","sourceRoot":"","sources":["../../src/getEntries.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAM3C,eAAO,MAAM,UAAU,QAAO,WAUP,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { IntLayerPlugin } from './webpack-plugin';
2
+ export { devServerConfig, webpackConfig } from './webpack.config';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Set the __dirname global variable to make the config work in both ESM and CJS environments
3
+ */
4
+ export declare const defineDirname: () => void;
5
+ export declare const getFileHash: (filePath: string) => string;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,aAAa,YASzB,CAAC;AAEF,eAAO,MAAM,WAAW,aAAc,MAAM,WAO3C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare class IntLayerPlugin {
2
+ apply(): void;
3
+ }
4
+ //# sourceMappingURL=webpack-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webpack-plugin.d.ts","sourceRoot":"","sources":["../../src/webpack-plugin.ts"],"names":[],"mappings":"AAKA,qBAAa,cAAc;IACzB,KAAK,IAAI,IAAI;CAGd"}
@@ -0,0 +1,6 @@
1
+ import type { Configuration as WebPackConfiguration } from 'webpack';
2
+ import type { Configuration as DevServerConfiguration } from 'webpack-dev-server';
3
+ export declare const devServerConfig: DevServerConfiguration;
4
+ export declare const webpackConfig: WebPackConfiguration;
5
+ export default webpackConfig;
6
+ //# sourceMappingURL=webpack.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webpack.config.d.ts","sourceRoot":"","sources":["../../src/webpack.config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAgBlF,eAAO,MAAM,eAAe,EAAE,sBA0B7B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,oBAuG3B,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/webpack",
3
- "version": "2.0.12",
3
+ "version": "3.0.0",
4
4
  "private": false,
5
5
  "description": "Webpack application for IntLayer - Transpile Intlayer declaration files into dictionaries using webpack.",
6
6
  "keywords": [
@@ -15,27 +15,27 @@
15
15
  ],
16
16
  "homepage": "https://intlayer.org",
17
17
  "bugs": {
18
- "url": "https://github.com/aypineau/intlayer/issues"
18
+ "url": "https://github.com/aymericzip/intlayer/issues"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/aypineau/intlayer.git"
22
+ "url": "git+https://github.com/aymericzip/intlayer.git"
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "author": {
26
26
  "name": "Aymeric PINEAU",
27
- "url": "https://github.com/aypineau"
27
+ "url": "https://github.com/aymericzip"
28
28
  },
29
29
  "contributors": [
30
30
  {
31
31
  "name": "Aymeric Pineau",
32
32
  "email": "ay.pineau@gmail.com",
33
- "url": "https://github.com/aypineau"
33
+ "url": "https://github.com/aymericzip"
34
34
  }
35
35
  ],
36
36
  "exports": {
37
37
  ".": {
38
- "types": "./dist/esm/index.d.mts",
38
+ "types": "./dist/types/index.d.ts",
39
39
  "require": "./dist/cjs/index.cjs",
40
40
  "import": "./dist/esm/index.mjs"
41
41
  },
@@ -43,6 +43,7 @@
43
43
  },
44
44
  "main": "dist/cjs/index.cjs",
45
45
  "module": "dist/esm/index.mjs",
46
+ "types": "dist/types/index.d.ts",
46
47
  "typesVersions": {
47
48
  "*": {
48
49
  "package.json": [
@@ -66,37 +67,45 @@
66
67
  "webpack": "^5.92.1",
67
68
  "webpack-cli": "^5.1.4",
68
69
  "webpack-dev-server": "^5.0.4",
69
- "@intlayer/chokidar": "^2.0.12",
70
- "@intlayer/cli": "^2.0.12",
71
- "@intlayer/config": "^2.0.12",
72
- "@intlayer/core": "^2.0.12",
73
- "intlayer": "^2.0.12"
70
+ "@intlayer/chokidar": "^3.0.0",
71
+ "@intlayer/config": "^3.0.0",
72
+ "intlayer": "^3.0.0",
73
+ "@intlayer/core": "^3.0.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@changesets/cli": "2.27.1",
77
77
  "@types/crypto-js": "^4.2.2",
78
78
  "@types/node": "^20.14.9",
79
- "tsup": "^8.1.0",
79
+ "concurrently": "^8.2.2",
80
+ "eslint": "^9.11.1",
81
+ "prettier": "3.3.3",
82
+ "tsc-alias": "^1.8.10",
83
+ "tsup": "^8.3.0",
80
84
  "typescript": "^5.5.2",
81
85
  "@utils/eslint-config": "^1.0.4",
86
+ "@utils/ts-config-types": "^1.0.4",
87
+ "@utils/tsup-config": "^1.0.4",
82
88
  "@utils/ts-config": "^1.0.4"
83
89
  },
84
90
  "engines": {
85
91
  "node": ">=14.18"
86
92
  },
87
93
  "bug": {
88
- "url": "https://github.com/aypineau/intlayer/issues"
94
+ "url": "https://github.com/aymericzip/intlayer/issues"
89
95
  },
90
96
  "scripts": {
91
- "build": "tsup",
97
+ "build": "pnpm build:package & pnpm build:types",
98
+ "build:package": "tsup",
99
+ "build:types": "tsc --project ./tsconfig.types.json && tsc-alias --project ./tsconfig.types.json",
92
100
  "clean": "rimraf ./dist",
93
- "dev": "tsup --watch",
94
- "lint": "eslint . --ext .ts,.tsx,.js,.jsx,.cjs,.mjs",
95
- "lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx,.cjs,.mjs --fix",
96
- "prettier:fix": "prettier --write src/**/*",
101
+ "dev": "concurrently --prefix none \"tsup --watch\" \"tsc --project ./tsconfig.types.json --watch\" \"tsc-alias --project ./tsconfig.types.json --watch\"",
102
+ "lint": "eslint . --cache",
103
+ "lint:fix": "eslint . --cache --fix",
104
+ "prettier": "prettier . --check",
105
+ "prettier:fix": "prettier . --write",
97
106
  "serve": "webpack serve --config ./webpack.config.ts",
98
107
  "transpile": "webpack --config ./webpack.config.ts",
99
- "typecheck": "tsup--project ./tsconfig.json --noEmit",
108
+ "typecheck": "tsup --project ./tsconfig.json --noEmit",
100
109
  "watch": "webpack --config ./webpack.config.ts --watch"
101
110
  }
102
111
  }
@@ -1,5 +0,0 @@
1
- import { EntryObject } from 'webpack';
2
-
3
- declare const getEntries: () => EntryObject;
4
-
5
- export { getEntries };
@@ -1,4 +0,0 @@
1
- export { IntLayerPlugin } from './webpack-plugin.js';
2
- export { devServerConfig, default as webpackConfig } from './webpack.config.js';
3
- import 'webpack';
4
- import 'webpack-dev-server';
@@ -1,7 +0,0 @@
1
- /**
2
- * Set the __dirname global variable to make the config work in both ESM and CJS environments
3
- */
4
- declare const defineDirname: () => void;
5
- declare const getFileHash: (filePath: string) => string;
6
-
7
- export { defineDirname, getFileHash };
@@ -1,5 +0,0 @@
1
- declare class IntLayerPlugin {
2
- apply(): void;
3
- }
4
-
5
- export { IntLayerPlugin };
@@ -1,7 +0,0 @@
1
- import { Configuration as Configuration$1 } from 'webpack';
2
- import { Configuration } from 'webpack-dev-server';
3
-
4
- declare const devServerConfig: Configuration;
5
- declare const webpackConfig: Configuration$1;
6
-
7
- export { webpackConfig as default, devServerConfig, webpackConfig };
@@ -1,5 +0,0 @@
1
- import { EntryObject } from 'webpack';
2
-
3
- declare const getEntries: () => EntryObject;
4
-
5
- export { getEntries };
@@ -1,4 +0,0 @@
1
- export { IntLayerPlugin } from './webpack-plugin.mjs';
2
- export { devServerConfig, default as webpackConfig } from './webpack.config.mjs';
3
- import 'webpack';
4
- import 'webpack-dev-server';
@@ -1,7 +0,0 @@
1
- /**
2
- * Set the __dirname global variable to make the config work in both ESM and CJS environments
3
- */
4
- declare const defineDirname: () => void;
5
- declare const getFileHash: (filePath: string) => string;
6
-
7
- export { defineDirname, getFileHash };
@@ -1,5 +0,0 @@
1
- declare class IntLayerPlugin {
2
- apply(): void;
3
- }
4
-
5
- export { IntLayerPlugin };
@@ -1,7 +0,0 @@
1
- import { Configuration as Configuration$1 } from 'webpack';
2
- import { Configuration } from 'webpack-dev-server';
3
-
4
- declare const devServerConfig: Configuration;
5
- declare const webpackConfig: Configuration$1;
6
-
7
- export { webpackConfig as default, devServerConfig, webpackConfig };