@prosopo/config 3.1.0 → 3.1.2

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/index.cjs +4 -38
  3. package/dist/cjs/vite/index.cjs +4 -0
  4. package/dist/cjs/vite/vite-plugin-copy.cjs +42 -0
  5. package/dist/cjs/vite/vite-plugin-remove-unused-translations.cjs +2 -2
  6. package/dist/cjs/vite/vite.commonjs.config.cjs +7 -1
  7. package/dist/cjs/vite/vite.esm.config.cjs +54 -0
  8. package/dist/cjs/vite/vite.test.config.cjs +14 -2
  9. package/dist/dependencies.js +134 -112
  10. package/dist/index.d.ts +0 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +31 -5
  13. package/dist/index.js.map +1 -1
  14. package/dist/vite/TsNoCheckPlugin.js +17 -13
  15. package/dist/vite/index.d.ts +2 -0
  16. package/dist/vite/index.d.ts.map +1 -1
  17. package/dist/vite/index.js +24 -10
  18. package/dist/vite/index.js.map +1 -1
  19. package/dist/vite/vite-plugin-close-and-copy.js +41 -36
  20. package/dist/vite/vite-plugin-copy.d.ts +10 -0
  21. package/dist/vite/vite-plugin-copy.d.ts.map +1 -0
  22. package/dist/vite/vite-plugin-copy.js +43 -0
  23. package/dist/vite/vite-plugin-copy.js.map +1 -0
  24. package/dist/vite/vite-plugin-fix-absolute-imports.js +25 -20
  25. package/dist/vite/vite-plugin-remove-unused-translations.js +76 -70
  26. package/dist/vite/vite-plugin-sourcemap-exclude.js +17 -14
  27. package/dist/vite/vite.backend.config.js +90 -84
  28. package/dist/vite/vite.commonjs.config.d.ts.map +1 -1
  29. package/dist/vite/vite.commonjs.config.js +53 -41
  30. package/dist/vite/vite.commonjs.config.js.map +1 -1
  31. package/dist/vite/vite.esm.config.d.ts +3 -0
  32. package/dist/vite/vite.esm.config.d.ts.map +1 -0
  33. package/dist/vite/vite.esm.config.js +55 -0
  34. package/dist/vite/vite.esm.config.js.map +1 -0
  35. package/dist/vite/vite.frontend.config.js +171 -141
  36. package/dist/vite/vite.test.config.d.ts +1 -1
  37. package/dist/vite/vite.test.config.d.ts.map +1 -1
  38. package/dist/vite/vite.test.config.js +58 -42
  39. package/dist/vite/vite.test.config.js.map +1 -1
  40. package/dist/webpack/index.js +1 -2
  41. package/dist/webpack/webpack.config.js +115 -109
  42. package/package.json +26 -21
  43. package/vite.cjs.config.ts +3 -4
  44. package/vite.esm.config.ts +19 -0
  45. package/dist/cjs/projectInfo.cjs +0 -76
  46. package/dist/projectInfo.d.ts +0 -38
  47. package/dist/projectInfo.d.ts.map +0 -1
  48. package/dist/projectInfo.js +0 -38
  49. package/dist/projectInfo.js.map +0 -1
@@ -6,117 +6,123 @@ import NodePolyfillPlugin from "node-polyfill-webpack-plugin";
6
6
  import TerserPlugin from "terser-webpack-plugin";
7
7
  const moduleDirs = [path.resolve("./node_modules")];
8
8
  function resolveEntryFile() {
9
- const defaultEntry = "./src/index.tsx";
10
- const supportedEntries = [defaultEntry, "./src/index.ts"];
11
- return (supportedEntries.find((entry) => fs.existsSync(path.resolve(entry))) ||
12
- defaultEntry);
9
+ const defaultEntry = "./src/index.tsx";
10
+ const supportedEntries = [defaultEntry, "./src/index.ts"];
11
+ return supportedEntries.find((entry) => fs.existsSync(path.resolve(entry))) || defaultEntry;
13
12
  }
14
- export default (mode) => {
15
- const isProduction = mode === "production";
16
- const libraryName = "react_app";
17
- return {
18
- resolve: {
19
- extensions: [".js", ".jsx", ".ts", ".tsx", ".cjs"],
20
- extensionAlias: {
21
- ".js": [".js", ".jsx", ".ts", ".tsx"],
22
- },
23
- modules: moduleDirs,
24
- fullySpecified: false,
25
- alias: {
26
- "@polkadot/x-textdecoder": path.resolve("../../node_modules/@polkadot/util/node_modules/@polkadot/x-textdecoder"),
27
- "@polkadot/x-textencoder": path.resolve("../../node_modules/@polkadot/util/node_modules/@polkadot/x-textencoder"),
28
- },
29
- },
30
- externals: {
31
- "node:url": "commonjs url",
32
- url: "commonjs url",
33
- "node:path": "commonjs path",
34
- "node:fs": "commonjs fs",
13
+ const webpack_config = (mode) => {
14
+ const isProduction = mode === "production";
15
+ const libraryName = "react_app";
16
+ return {
17
+ resolve: {
18
+ extensions: [".js", ".jsx", ".ts", ".tsx", ".cjs"],
19
+ extensionAlias: {
20
+ ".js": [".js", ".jsx", ".ts", ".tsx"]
21
+ },
22
+ modules: moduleDirs,
23
+ fullySpecified: false,
24
+ alias: {
25
+ "@polkadot/x-textdecoder": path.resolve(
26
+ "../../node_modules/@polkadot/util/node_modules/@polkadot/x-textdecoder"
27
+ ),
28
+ "@polkadot/x-textencoder": path.resolve(
29
+ "../../node_modules/@polkadot/util/node_modules/@polkadot/x-textencoder"
30
+ )
31
+ }
32
+ },
33
+ externals: {
34
+ "node:url": "commonjs url",
35
+ url: "commonjs url",
36
+ "node:path": "commonjs path",
37
+ "node:fs": "commonjs fs"
38
+ },
39
+ entry: resolveEntryFile(),
40
+ output: {
41
+ filename: `${libraryName}.[name].bundle.js`,
42
+ path: path.resolve("./dist"),
43
+ publicPath: "/"
44
+ },
45
+ module: {
46
+ rules: [
47
+ // instead of using .babelrc, we can use babel-loader options
48
+ {
49
+ test: /\.(m?js|jsx|tsx|ts)$/,
50
+ exclude: /node_modules/,
51
+ use: {
52
+ loader: "babel-loader",
53
+ options: {
54
+ plugins: [
55
+ "@babel/plugin-transform-runtime",
56
+ "@babel/transform-class-properties",
57
+ "@babel/transform-object-rest-spread",
58
+ "@babel/plugin-transform-react-jsx",
59
+ [
60
+ "@babel/plugin-syntax-import-attributes",
61
+ { deprecatedAssertSyntax: true }
62
+ ]
63
+ ],
64
+ presets: ["@babel/preset-env", "@babel/preset-typescript"]
65
+ }
66
+ }
35
67
  },
36
- entry: resolveEntryFile(),
37
- output: {
38
- filename: `${libraryName}.[name].bundle.js`,
39
- path: path.resolve("./dist"),
40
- publicPath: "/",
68
+ {
69
+ include: /node_modules|src/,
70
+ test: /\.css$/,
71
+ resolve: {
72
+ fullySpecified: false
73
+ },
74
+ sideEffects: true,
75
+ use: [
76
+ MiniCssExtractPlugin.loader,
77
+ {
78
+ loader: require.resolve("css-loader"),
79
+ options: {
80
+ url: false
81
+ }
82
+ }
83
+ ]
41
84
  },
42
- module: {
43
- rules: [
44
- {
45
- test: /\.(m?js|jsx|tsx|ts)$/,
46
- exclude: /node_modules/,
47
- use: {
48
- loader: "babel-loader",
49
- options: {
50
- plugins: [
51
- "@babel/plugin-transform-runtime",
52
- "@babel/transform-class-properties",
53
- "@babel/transform-object-rest-spread",
54
- "@babel/plugin-transform-react-jsx",
55
- [
56
- "@babel/plugin-syntax-import-attributes",
57
- { deprecatedAssertSyntax: true },
58
- ],
59
- ],
60
- presets: ["@babel/preset-env", "@babel/preset-typescript"],
61
- },
62
- },
63
- },
64
- {
65
- include: /node_modules|src/,
66
- test: /\.css$/,
67
- resolve: {
68
- fullySpecified: false,
69
- },
70
- sideEffects: true,
71
- use: [
72
- MiniCssExtractPlugin.loader,
73
- {
74
- loader: require.resolve("css-loader"),
75
- options: {
76
- url: false,
77
- },
78
- },
79
- ],
80
- },
81
- {
82
- test: /locale\.json$/,
83
- loader: "webpack-json-access-optimizer",
84
- },
85
- {
86
- test: /packageInfo.js$/,
87
- loader: "string-replace-loader",
88
- options: {
89
- search: /import\.meta && import\.meta\.url/g,
90
- replace: "false",
91
- },
92
- },
93
- ],
85
+ {
86
+ test: /locale\.json$/,
87
+ // match JSON files to optimize
88
+ loader: "webpack-json-access-optimizer"
94
89
  },
95
- plugins: [
96
- new NodePolyfillPlugin(),
97
- new HtmlWebpackPlugin({
98
- template: "./src/index.html",
99
- }),
100
- new MiniCssExtractPlugin({
101
- filename: "extr.[contenthash].css",
102
- }),
103
- ],
104
- optimization: {
105
- noEmitOnErrors: true,
106
- minimize: isProduction,
107
- minimizer: isProduction
108
- ? [
109
- new TerserPlugin({
110
- terserOptions: {
111
- compress: {
112
- drop_console: true,
113
- },
114
- },
115
- }),
116
- ]
117
- : [],
118
- usedExports: true,
119
- },
120
- };
90
+ // Fix for import.meta.url
91
+ {
92
+ test: /packageInfo.js$/,
93
+ loader: "string-replace-loader",
94
+ options: {
95
+ search: /import\.meta && import\.meta\.url/g,
96
+ replace: "false"
97
+ }
98
+ }
99
+ ]
100
+ },
101
+ plugins: [
102
+ new NodePolyfillPlugin(),
103
+ new HtmlWebpackPlugin({
104
+ template: "./src/index.html"
105
+ }),
106
+ new MiniCssExtractPlugin({
107
+ filename: "extr.[contenthash].css"
108
+ })
109
+ ],
110
+ optimization: {
111
+ noEmitOnErrors: true,
112
+ minimize: isProduction,
113
+ minimizer: isProduction ? [
114
+ new TerserPlugin({
115
+ terserOptions: {
116
+ compress: {
117
+ drop_console: true
118
+ }
119
+ }
120
+ })
121
+ ] : [],
122
+ usedExports: true
123
+ }
124
+ };
125
+ };
126
+ export {
127
+ webpack_config as default
121
128
  };
122
- //# sourceMappingURL=webpack.config.js.map
package/package.json CHANGED
@@ -1,28 +1,15 @@
1
1
  {
2
2
  "name": "@prosopo/config",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "Prosopo config library",
5
- "main": "./dist/index.js",
6
5
  "type": "module",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/index.js",
10
- "require": "./dist/cjs/index.cjs"
11
- },
12
- "./webpack": {
13
- "import": "./dist/webpack/index.js",
14
- "require": "./dist/webpack/cjs/index.cjs"
15
- },
16
- "./webpack/webpack.config": {
17
- "import": "./dist/webpack/webpack.config.js",
18
- "require": "./dist/cjs/webpack/webpack.config.cjs"
19
- }
20
- },
21
6
  "scripts": {
22
- "test": "echo \"No test specified\"",
23
- "clean": "tsc --build --clean",
24
- "build": "tsc --build --verbose",
25
- "build:cjs": "vite build --config vite.cjs.config.ts"
7
+ "build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
8
+ "build:tsc": "tsc --build --verbose",
9
+ "build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
10
+ "clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
11
+ "typecheck": "tsc --build --declaration --emitDeclarationOnly --force",
12
+ "test": "echo no tests"
26
13
  },
27
14
  "engines": {
28
15
  "node": "20",
@@ -51,6 +38,7 @@
51
38
  "babel-loader": "9.2.1",
52
39
  "consola": "3.2.3",
53
40
  "css-loader": "7.1.2",
41
+ "dotenv": "17.2.0",
54
42
  "esbuild": "0.25.6",
55
43
  "express": "4.21.2",
56
44
  "html-webpack-plugin": "5.6.0",
@@ -100,5 +88,22 @@
100
88
  "publishConfig": {
101
89
  "registry": "https://registry.npmjs.org"
102
90
  },
103
- "sideEffects": false
91
+ "sideEffects": false,
92
+ "main": "dist/index.js",
93
+ "types": "dist/index.d.ts",
94
+ "exports": {
95
+ ".": {
96
+ "types": "./dist/index.d.ts",
97
+ "import": "./dist/index.js",
98
+ "require": "./dist/cjs/index.cjs"
99
+ },
100
+ "./webpack": {
101
+ "import": "./dist/webpack/index.js",
102
+ "require": "./dist/webpack/cjs/index.cjs"
103
+ },
104
+ "./webpack/webpack.config": {
105
+ "import": "./dist/webpack/webpack.config.js",
106
+ "require": "./dist/cjs/webpack/webpack.config.cjs"
107
+ }
108
+ }
104
109
  }
@@ -12,12 +12,11 @@ import path from "node:path";
12
12
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  // See the License for the specific language governing permissions and
14
14
  // limitations under the License.
15
- import { ViteCommonJSConfig } from "./src/vite/index.js";
15
+ import ViteCommonJSConfig from "./src/vite/vite.commonjs.config.js";
16
16
 
17
17
  export default function () {
18
18
  return ViteCommonJSConfig(
19
- "config",
20
- path.resolve("./tsconfig.cjs.json"),
21
- "src/index.ts",
19
+ path.basename("."),
20
+ path.resolve("./tsconfig.json"),
22
21
  );
23
22
  }
@@ -0,0 +1,19 @@
1
+ import path from "node:path";
2
+ // Copyright 2021-2025 Prosopo (UK) Ltd.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ import ViteESMConfig from "./src/vite/vite.esm.config.js";
16
+
17
+ export default function () {
18
+ return ViteESMConfig(path.basename("."), path.resolve("./tsconfig.json"));
19
+ }
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const getRootDir = () => new URL("../../..", module).pathname.slice(0, -1);
4
- const getCacheDir = () => `${getRootDir()}/.cache`;
5
- const getTestResultsDir = () => `${getCacheDir()}/test-results`;
6
- const getDevDir = () => `${getRootDir()}/dev`;
7
- const getDemosDir = () => `${getRootDir()}/demos`;
8
- const getPackagesDir = () => `${getRootDir()}/packages`;
9
- const getNodeModulesDir = () => `${getRootDir()}/node_modules`;
10
- const getConfigPkgDir = () => `${getDevDir()}/config`;
11
- const getScriptsPkgDir = () => `${getDevDir()}/scripts`;
12
- const getClientExampleDir = () => `${getDemosDir()}/client-example`;
13
- const getClientExampleServerDir = () => `${getDemosDir()}/client-example-server`;
14
- const getClientBundleExampleDir = () => `${getDemosDir()}/client-bundle-example`;
15
- const getDappExampleDir = () => `${getDemosDir()}/dapp-example`;
16
- const getAccountPkgDir = () => `${getPackagesDir()}/account`;
17
- const getApiPkgDir = () => `${getPackagesDir()}/api`;
18
- const getCliPkgDir = () => `${getPackagesDir()}/cli`;
19
- const getCommonPkgDir = () => `${getPackagesDir()}/common`;
20
- const getDatabasePkgDir = () => `${getPackagesDir()}/database`;
21
- const getDatasetsPkgDir = () => `${getPackagesDir()}/datasets`;
22
- const getDatasetsFsPkgDir = () => `${getPackagesDir()}/datasets-fs`;
23
- const getDotEnvPkgDir = () => `${getPackagesDir()}/dotenv`;
24
- const getEnvPkgDir = () => `${getPackagesDir()}/env`;
25
- const getFileServerPkgDir = () => `${getPackagesDir()}/file-server`;
26
- const getProcaptchaPkgDir = () => `${getPackagesDir()}/procaptcha`;
27
- const getProcaptchaBundlePkgDir = () => `${getPackagesDir()}/procaptcha-bundle`;
28
- const getProcaptchaCommonPkgDir = () => `${getPackagesDir()}/procaptcha-common`;
29
- const getProcaptchaFrictionlessPkgDir = () => `${getPackagesDir()}/procaptcha-frictionless`;
30
- const getProcaptchaPoWPkgDir = () => `${getPackagesDir()}/procaptcha-pow`;
31
- const getProcaptchaReactPkgDir = () => `${getPackagesDir()}/procaptcha-react`;
32
- const getProviderPkgDir = () => `${getPackagesDir()}/provider`;
33
- const getServerPkgDir = () => `${getPackagesDir()}/server`;
34
- const getTypesPkgDir = () => `${getPackagesDir()}/types`;
35
- const getTypesDatabasePkgDir = () => `${getPackagesDir()}/types-database`;
36
- const getTypesEnvPkgDir = () => `${getPackagesDir()}/types-env`;
37
- const getUtilPkgDir = () => `${getPackagesDir()}/util`;
38
- const getWidgetSkeletonPkgDir = () => `${getPackagesDir()}/widget-skeleton`;
39
- const getLocalePkgDir = () => `${getPackagesDir()}/locale`;
40
- exports.getAccountPkgDir = getAccountPkgDir;
41
- exports.getApiPkgDir = getApiPkgDir;
42
- exports.getCacheDir = getCacheDir;
43
- exports.getCliPkgDir = getCliPkgDir;
44
- exports.getClientBundleExampleDir = getClientBundleExampleDir;
45
- exports.getClientExampleDir = getClientExampleDir;
46
- exports.getClientExampleServerDir = getClientExampleServerDir;
47
- exports.getCommonPkgDir = getCommonPkgDir;
48
- exports.getConfigPkgDir = getConfigPkgDir;
49
- exports.getDappExampleDir = getDappExampleDir;
50
- exports.getDatabasePkgDir = getDatabasePkgDir;
51
- exports.getDatasetsFsPkgDir = getDatasetsFsPkgDir;
52
- exports.getDatasetsPkgDir = getDatasetsPkgDir;
53
- exports.getDemosDir = getDemosDir;
54
- exports.getDevDir = getDevDir;
55
- exports.getDotEnvPkgDir = getDotEnvPkgDir;
56
- exports.getEnvPkgDir = getEnvPkgDir;
57
- exports.getFileServerPkgDir = getFileServerPkgDir;
58
- exports.getLocalePkgDir = getLocalePkgDir;
59
- exports.getNodeModulesDir = getNodeModulesDir;
60
- exports.getPackagesDir = getPackagesDir;
61
- exports.getProcaptchaBundlePkgDir = getProcaptchaBundlePkgDir;
62
- exports.getProcaptchaCommonPkgDir = getProcaptchaCommonPkgDir;
63
- exports.getProcaptchaFrictionlessPkgDir = getProcaptchaFrictionlessPkgDir;
64
- exports.getProcaptchaPkgDir = getProcaptchaPkgDir;
65
- exports.getProcaptchaPoWPkgDir = getProcaptchaPoWPkgDir;
66
- exports.getProcaptchaReactPkgDir = getProcaptchaReactPkgDir;
67
- exports.getProviderPkgDir = getProviderPkgDir;
68
- exports.getRootDir = getRootDir;
69
- exports.getScriptsPkgDir = getScriptsPkgDir;
70
- exports.getServerPkgDir = getServerPkgDir;
71
- exports.getTestResultsDir = getTestResultsDir;
72
- exports.getTypesDatabasePkgDir = getTypesDatabasePkgDir;
73
- exports.getTypesEnvPkgDir = getTypesEnvPkgDir;
74
- exports.getTypesPkgDir = getTypesPkgDir;
75
- exports.getUtilPkgDir = getUtilPkgDir;
76
- exports.getWidgetSkeletonPkgDir = getWidgetSkeletonPkgDir;
@@ -1,38 +0,0 @@
1
- export declare const getRootDir: () => string;
2
- export declare const getCacheDir: () => string;
3
- export declare const getTestResultsDir: () => string;
4
- export declare const getDevDir: () => string;
5
- export declare const getDemosDir: () => string;
6
- export declare const getPackagesDir: () => string;
7
- export declare const getNodeModulesDir: () => string;
8
- export declare const getConfigPkgDir: () => string;
9
- export declare const getScriptsPkgDir: () => string;
10
- export declare const getClientExampleDir: () => string;
11
- export declare const getClientExampleServerDir: () => string;
12
- export declare const getClientBundleExampleDir: () => string;
13
- export declare const getDappExampleDir: () => string;
14
- export declare const getAccountPkgDir: () => string;
15
- export declare const getApiPkgDir: () => string;
16
- export declare const getCliPkgDir: () => string;
17
- export declare const getCommonPkgDir: () => string;
18
- export declare const getDatabasePkgDir: () => string;
19
- export declare const getDatasetsPkgDir: () => string;
20
- export declare const getDatasetsFsPkgDir: () => string;
21
- export declare const getDotEnvPkgDir: () => string;
22
- export declare const getEnvPkgDir: () => string;
23
- export declare const getFileServerPkgDir: () => string;
24
- export declare const getProcaptchaPkgDir: () => string;
25
- export declare const getProcaptchaBundlePkgDir: () => string;
26
- export declare const getProcaptchaCommonPkgDir: () => string;
27
- export declare const getProcaptchaFrictionlessPkgDir: () => string;
28
- export declare const getProcaptchaPoWPkgDir: () => string;
29
- export declare const getProcaptchaReactPkgDir: () => string;
30
- export declare const getProviderPkgDir: () => string;
31
- export declare const getServerPkgDir: () => string;
32
- export declare const getTypesPkgDir: () => string;
33
- export declare const getTypesDatabasePkgDir: () => string;
34
- export declare const getTypesEnvPkgDir: () => string;
35
- export declare const getUtilPkgDir: () => string;
36
- export declare const getWidgetSkeletonPkgDir: () => string;
37
- export declare const getLocalePkgDir: () => string;
38
- //# sourceMappingURL=projectInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"projectInfo.d.ts","sourceRoot":"","sources":["../src/projectInfo.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,UAAU,cACoC,CAAC;AAE5D,eAAO,MAAM,WAAW,cAAiC,CAAC;AAE1D,eAAO,MAAM,iBAAiB,cAAwC,CAAC;AAEvE,eAAO,MAAM,SAAS,cAA8B,CAAC;AAErD,eAAO,MAAM,WAAW,cAAgC,CAAC;AAEzD,eAAO,MAAM,cAAc,cAAmC,CAAC;AAE/D,eAAO,MAAM,iBAAiB,cAAuC,CAAC;AAItE,eAAO,MAAM,eAAe,cAAgC,CAAC;AAE7D,eAAO,MAAM,gBAAgB,cAAiC,CAAC;AAI/D,eAAO,MAAM,mBAAmB,cAA0C,CAAC;AAE3E,eAAO,MAAM,yBAAyB,cACG,CAAC;AAE1C,eAAO,MAAM,yBAAyB,cACG,CAAC;AAE1C,eAAO,MAAM,iBAAiB,cAAwC,CAAC;AAIvE,eAAO,MAAM,gBAAgB,cAAsC,CAAC;AAEpE,eAAO,MAAM,YAAY,cAAkC,CAAC;AAE5D,eAAO,MAAM,YAAY,cAAkC,CAAC;AAE5D,eAAO,MAAM,eAAe,cAAqC,CAAC;AAElE,eAAO,MAAM,iBAAiB,cAAuC,CAAC;AAEtE,eAAO,MAAM,iBAAiB,cAAuC,CAAC;AAEtE,eAAO,MAAM,mBAAmB,cAA0C,CAAC;AAE3E,eAAO,MAAM,eAAe,cAAqC,CAAC;AAElE,eAAO,MAAM,YAAY,cAAkC,CAAC;AAE5D,eAAO,MAAM,mBAAmB,cAA0C,CAAC;AAE3E,eAAO,MAAM,mBAAmB,cAAyC,CAAC;AAE1E,eAAO,MAAM,yBAAyB,cACE,CAAC;AAEzC,eAAO,MAAM,yBAAyB,cACE,CAAC;AAEzC,eAAO,MAAM,+BAA+B,cACE,CAAC;AAE/C,eAAO,MAAM,sBAAsB,cACE,CAAC;AAEtC,eAAO,MAAM,wBAAwB,cACE,CAAC;AAExC,eAAO,MAAM,iBAAiB,cAAuC,CAAC;AAEtE,eAAO,MAAM,eAAe,cAAqC,CAAC;AAElE,eAAO,MAAM,cAAc,cAAoC,CAAC;AAEhE,eAAO,MAAM,sBAAsB,cACE,CAAC;AAEtC,eAAO,MAAM,iBAAiB,cAAwC,CAAC;AAEvE,eAAO,MAAM,aAAa,cAAmC,CAAC;AAE9D,eAAO,MAAM,uBAAuB,cACE,CAAC;AAEvC,eAAO,MAAM,eAAe,cAAqC,CAAC"}
@@ -1,38 +0,0 @@
1
- export const getRootDir = () => new URL("../../..", import.meta.url).pathname.slice(0, -1);
2
- export const getCacheDir = () => `${getRootDir()}/.cache`;
3
- export const getTestResultsDir = () => `${getCacheDir()}/test-results`;
4
- export const getDevDir = () => `${getRootDir()}/dev`;
5
- export const getDemosDir = () => `${getRootDir()}/demos`;
6
- export const getPackagesDir = () => `${getRootDir()}/packages`;
7
- export const getNodeModulesDir = () => `${getRootDir()}/node_modules`;
8
- export const getConfigPkgDir = () => `${getDevDir()}/config`;
9
- export const getScriptsPkgDir = () => `${getDevDir()}/scripts`;
10
- export const getClientExampleDir = () => `${getDemosDir()}/client-example`;
11
- export const getClientExampleServerDir = () => `${getDemosDir()}/client-example-server`;
12
- export const getClientBundleExampleDir = () => `${getDemosDir()}/client-bundle-example`;
13
- export const getDappExampleDir = () => `${getDemosDir()}/dapp-example`;
14
- export const getAccountPkgDir = () => `${getPackagesDir()}/account`;
15
- export const getApiPkgDir = () => `${getPackagesDir()}/api`;
16
- export const getCliPkgDir = () => `${getPackagesDir()}/cli`;
17
- export const getCommonPkgDir = () => `${getPackagesDir()}/common`;
18
- export const getDatabasePkgDir = () => `${getPackagesDir()}/database`;
19
- export const getDatasetsPkgDir = () => `${getPackagesDir()}/datasets`;
20
- export const getDatasetsFsPkgDir = () => `${getPackagesDir()}/datasets-fs`;
21
- export const getDotEnvPkgDir = () => `${getPackagesDir()}/dotenv`;
22
- export const getEnvPkgDir = () => `${getPackagesDir()}/env`;
23
- export const getFileServerPkgDir = () => `${getPackagesDir()}/file-server`;
24
- export const getProcaptchaPkgDir = () => `${getPackagesDir()}/procaptcha`;
25
- export const getProcaptchaBundlePkgDir = () => `${getPackagesDir()}/procaptcha-bundle`;
26
- export const getProcaptchaCommonPkgDir = () => `${getPackagesDir()}/procaptcha-common`;
27
- export const getProcaptchaFrictionlessPkgDir = () => `${getPackagesDir()}/procaptcha-frictionless`;
28
- export const getProcaptchaPoWPkgDir = () => `${getPackagesDir()}/procaptcha-pow`;
29
- export const getProcaptchaReactPkgDir = () => `${getPackagesDir()}/procaptcha-react`;
30
- export const getProviderPkgDir = () => `${getPackagesDir()}/provider`;
31
- export const getServerPkgDir = () => `${getPackagesDir()}/server`;
32
- export const getTypesPkgDir = () => `${getPackagesDir()}/types`;
33
- export const getTypesDatabasePkgDir = () => `${getPackagesDir()}/types-database`;
34
- export const getTypesEnvPkgDir = () => `${getPackagesDir()}/types-env`;
35
- export const getUtilPkgDir = () => `${getPackagesDir()}/util`;
36
- export const getWidgetSkeletonPkgDir = () => `${getPackagesDir()}/widget-skeleton`;
37
- export const getLocalePkgDir = () => `${getPackagesDir()}/locale`;
38
- //# sourceMappingURL=projectInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"projectInfo.js","sourceRoot":"","sources":["../src/projectInfo.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE,CAC9B,IAAI,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,GAAG,UAAU,EAAE,SAAS,CAAC;AAE1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,GAAG,WAAW,EAAE,eAAe,CAAC;AAEvE,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,GAAG,UAAU,EAAE,MAAM,CAAC;AAErD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,GAAG,UAAU,EAAE,QAAQ,CAAC;AAEzD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,GAAG,UAAU,EAAE,WAAW,CAAC;AAE/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,GAAG,UAAU,EAAE,eAAe,CAAC;AAItE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,GAAG,SAAS,EAAE,SAAS,CAAC;AAE7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,GAAG,SAAS,EAAE,UAAU,CAAC;AAI/D,MAAM,CAAC,MAAM,m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