@cedarjs/project-config 7.0.0-canary.2989 → 7.0.0-canary.2994

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": "@cedarjs/project-config",
3
- "version": "7.0.0-canary.2989",
3
+ "version": "7.0.0-canary.2994",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -10,34 +10,16 @@
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
13
- "import": {
14
- "types": "./dist/index.d.ts",
15
- "default": "./dist/index.js"
16
- },
17
- "require": {
18
- "types": "./dist/cjs/index.d.ts",
19
- "default": "./dist/cjs/index.js"
20
- }
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
21
15
  },
22
16
  "./packageManager": {
23
- "import": {
24
- "types": "./dist/packageManager.d.ts",
25
- "default": "./dist/packageManager.js"
26
- },
27
- "default": {
28
- "types": "./dist/cjs/packageManager.d.ts",
29
- "default": "./dist/cjs/packageManager.js"
30
- }
17
+ "types": "./dist/packageManager.d.ts",
18
+ "default": "./dist/packageManager.js"
31
19
  },
32
20
  "./workspaces": {
33
- "import": {
34
- "types": "./dist/workspaces.d.ts",
35
- "default": "./dist/workspaces.js"
36
- },
37
- "default": {
38
- "types": "./dist/cjs/workspaces.d.ts",
39
- "default": "./dist/cjs/workspaces.js"
40
- }
21
+ "types": "./dist/workspaces.d.ts",
22
+ "default": "./dist/workspaces.js"
41
23
  }
42
24
  },
43
25
  "types": "./dist/index.d.ts",
@@ -47,7 +29,7 @@
47
29
  "scripts": {
48
30
  "build": "node ./build.ts && run build:types",
49
31
  "build:pack": "yarn pack -o cedarjs-project-config.tgz",
50
- "build:types": "tsc --build --verbose ./tsconfig.json ./tsconfig.cjs.json",
32
+ "build:types": "tsc --build --verbose ./tsconfig.json",
51
33
  "build:watch": "nodemon --watch src --ext \"js,ts,tsx\" --ignore dist --exec \"yarn build\"",
52
34
  "check:attw": "yarn cedar-fwtools-attw",
53
35
  "check:package": "concurrently npm:check:attw yarn:publint",
@@ -64,7 +46,7 @@
64
46
  },
65
47
  "devDependencies": {
66
48
  "@arethetypeswrong/cli": "0.18.5",
67
- "@cedarjs/framework-tools": "7.0.0-canary.2989",
49
+ "@cedarjs/framework-tools": "7.0.0-canary.2994",
68
50
  "concurrently": "9.2.4",
69
51
  "prisma": "7.8.0",
70
52
  "publint": "0.3.23",
@@ -1,141 +0,0 @@
1
- import * as toml from 'smol-toml';
2
- export declare enum TargetEnum {
3
- NODE = "node",
4
- BROWSER = "browser",
5
- REACT_NATIVE = "react-native",
6
- ELECTRON = "electron"
7
- }
8
- export interface NodeTargetConfig {
9
- title: string;
10
- name?: string;
11
- host?: string;
12
- port: number;
13
- path: string;
14
- target: TargetEnum.NODE;
15
- prismaConfig: string;
16
- prismaGenerateArgs: string[];
17
- serverConfig: string;
18
- debugPort?: number | boolean;
19
- }
20
- interface BrowserTargetConfig {
21
- title: string;
22
- name?: string;
23
- host?: string;
24
- port: number;
25
- path: string;
26
- target: TargetEnum.BROWSER;
27
- includeEnvironmentVariables: string[];
28
- /**
29
- * Specify the URL to your api-server.
30
- * This can be an absolute path proxied on the current domain (`/.netlify/functions`),
31
- * or a fully qualified URL (`https://api.example.org:8911/functions`).
32
- *
33
- * Note: This should not include the path to the GraphQL Server.
34
- **/
35
- apiUrl: string;
36
- /**
37
- * Optional: FQDN or absolute path to the GraphQL serverless function, without the trailing slash.
38
- * This will override the apiUrl configuration just for the graphql function
39
- * Example: `./redwood/functions/graphql` or `https://api.redwoodjs.com/graphql`
40
- */
41
- apiGraphQLUrl?: string;
42
- fastRefresh: boolean;
43
- a11y: boolean;
44
- sourceMap: boolean;
45
- }
46
- interface GraphiQLStudioConfig {
47
- endpoint?: string;
48
- authImpersonation?: AuthImpersonationConfig;
49
- }
50
- type SupportedAuthImpersonationProviders = 'dbAuth' | 'netlify' | 'supabase';
51
- interface AuthImpersonationConfig {
52
- authProvider?: SupportedAuthImpersonationProviders;
53
- jwtSecret?: string;
54
- userId?: string;
55
- email?: string;
56
- roles?: string[];
57
- }
58
- interface StudioConfig {
59
- basePort: number;
60
- graphiql?: GraphiQLStudioConfig;
61
- }
62
- export interface Config {
63
- web: BrowserTargetConfig;
64
- api: NodeTargetConfig;
65
- browser: {
66
- open: boolean | string;
67
- };
68
- generate: {
69
- tests: boolean;
70
- stories: boolean;
71
- nestScaffoldByModel: boolean;
72
- };
73
- graphql: {
74
- fragments: boolean;
75
- trustedDocuments: boolean;
76
- includeScalars: {
77
- File: boolean;
78
- };
79
- };
80
- notifications: {
81
- versionUpdates: string[];
82
- };
83
- studio: StudioConfig;
84
- experimental: {
85
- opentelemetry: {
86
- enabled: boolean;
87
- wrapApi: boolean;
88
- apiSdk?: string;
89
- };
90
- cli: {
91
- autoInstall: boolean;
92
- plugins: CLIPlugin[];
93
- };
94
- useSDLCodeGenForGraphQLTypes: boolean;
95
- streamingSsr: {
96
- enabled: boolean;
97
- };
98
- rsc: {
99
- enabled: boolean;
100
- };
101
- realtime: {
102
- enabled: boolean;
103
- };
104
- reactCompiler: {
105
- enabled: boolean;
106
- lintOnly: boolean;
107
- };
108
- packagesWorkspace: {
109
- enabled: boolean;
110
- };
111
- gqlorm: {
112
- enabled: boolean;
113
- organizationModel?: string;
114
- membershipModel?: string;
115
- membershipUserField?: string;
116
- membershipOrganizationField?: string;
117
- };
118
- };
119
- }
120
- export interface CLIPlugin {
121
- package: string;
122
- enabled?: boolean;
123
- }
124
- export declare const DEFAULT_CONFIG: Config;
125
- /**
126
- * These configuration options are modified by the user via the Cedar config
127
- * file.
128
- *
129
- * @param configPath Path to the config file. Defaults to automatically finding
130
- * the project config file (cedar.toml or redwood.toml)
131
- */
132
- export declare function getConfig(configPath?: string): Config;
133
- /**
134
- * Returns a JSON representation of the config file without any default values.
135
- *
136
- * @param configPath Path to the config file. Defaults to automatically finding
137
- * the project config file (cedar.toml or redwood.toml)
138
- */
139
- export declare function getRawConfig(configPath?: string): toml.TomlTable;
140
- export {};
141
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAKjC,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAC,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC7B;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAC,OAAO,CAAA;IAC1B,2BAA2B,EAAE,MAAM,EAAE,CAAA;IACrC;;;;;;QAMI;IACJ,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,WAAW,EAAE,OAAO,CAAA;IACpB,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iBAAiB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AAO,CAAA;SACjB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,OAAO,CAAA;SACjB,CAAA;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,OAAO,CAAA;SACjB,CAAA;QACD,aAAa,EAAE;YACb,OAAO,EAAE,OAAO,CAAA;YAChB,QAAQ,EAAE,OAAO,CAAA;SAClB,CAAA;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,OAAO,CAAA;SACjB,CAAA;QACD,MAAM,EAAE;YACN,OAAO,EAAE,OAAO,CAAA;YAChB,iBAAiB,CAAC,EAAE,MAAM,CAAA;YAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;YACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;YAC5B,2BAA2B,CAAC,EAAE,MAAM,CAAA;SACrC,CAAA;KACF,CAAA;CACF;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,cAAc,EAAE,MA0F5B,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,UAAU,SAAkB,kBAMxD"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Search the parent directories for the Cedar configuration file.
3
- */
4
- export declare const getConfigPath: (cwd?: string) => string;
5
- //# sourceMappingURL=configPath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configPath.d.ts","sourceRoot":"","sources":["../../src/configPath.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,MAAK,MAAuE,KAC3E,MAmBF,CAAA"}
@@ -1,14 +0,0 @@
1
- export declare function getEnvVarDefinitions(): {
2
- RWJS_ENV: {
3
- RWJS_API_GRAPHQL_URL: string;
4
- RWJS_API_URL: string;
5
- __REDWOOD__APP_TITLE: string;
6
- RWJS_EXP_STREAMING_SSR: boolean;
7
- RWJS_EXP_RSC: boolean;
8
- };
9
- RWJS_DEBUG_ENV: {
10
- RWJS_SRC_ROOT: string;
11
- REDWOOD_ENV_EDITOR: string;
12
- };
13
- };
14
- //# sourceMappingURL=envVarDefinitions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"envVarDefinitions.d.ts","sourceRoot":"","sources":["../../src/envVarDefinitions.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB;;;;;;;;;;;;EA0CnC"}
@@ -1,32 +0,0 @@
1
- interface ReadEnvVarOptions {
2
- /**
3
- * The pre-fork `REDWOOD_`-prefixed name for this env var. Still read, so
4
- * projects don't break on upgrade, but the `CEDAR_`-prefixed name wins.
5
- */
6
- deprecatedAlias: string;
7
- }
8
- /**
9
- * Read an env var that was renamed when Cedar forked from Redwood.
10
- *
11
- * The `CEDAR_`-prefixed name wins. The `REDWOOD_`-prefixed one keeps working
12
- * so existing projects don't break on upgrade.
13
- *
14
- * Empty strings are treated as unset, matching how a `.env` file with a blank
15
- * value behaves.
16
- */
17
- export declare function readEnvVar(name: string, { deprecatedAlias }: ReadEnvVarOptions): string | undefined;
18
- /**
19
- * Parse a port from an env var, rejecting anything that isn't a usable port.
20
- *
21
- * `parseInt` alone is not enough here: it stops at the first non-digit, so
22
- * `"8080abc"` would become `8080` and `"1.5"` would become `1`. Silently
23
- * binding a port the user didn't ask for is how a deployment ends up
24
- * unreachable, so the whole value has to look like an integer.
25
- *
26
- * Out-of-range values are rejected here too, so a bad env var is reported as
27
- * a bad env var rather than surfacing later as a `ERR_SOCKET_BAD_PORT` from
28
- * `listen()`. Port 0 is allowed — it means "pick a free port".
29
- */
30
- export declare function parsePort(value: string, envVarName: string): number;
31
- export {};
32
- //# sourceMappingURL=envVars.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"envVars.d.ts","sourceRoot":"","sources":["../../src/envVars.ts"],"names":[],"mappings":"AAAA,UAAU,iBAAiB;IACzB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAA;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,EAAE,eAAe,EAAE,EAAE,iBAAiB,GACrC,MAAM,GAAG,SAAS,CAEpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAkBnE"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Find a file by walking up parent directories.
3
- */
4
- export declare function findUp(file: string, startingDirectory?: string): string | null;
5
- //# sourceMappingURL=findUp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"findUp.d.ts","sourceRoot":"","sources":["../../src/findUp.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,MAAM,EACZ,iBAAiB,GAAE,MAAsB,GACxC,MAAM,GAAG,IAAI,CAef"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Based on the location of the project config file (e.g. cedar.toml), it checks
3
- * for the existence of `.cedar/` or `.redwood/` directories. If either is found,
4
- * it returns the path to that directory.
5
- *
6
- * If neither directory exists yet it default to `.cedar/` in the resolved
7
- * project root.
8
- */
9
- export declare function getGeneratedDataDirPath(cwd?: string): string;
10
- //# sourceMappingURL=generatedDataDir.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generatedDataDir.d.ts","sourceRoot":"","sources":["../../src/generatedDataDir.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,GAAE,MAAuE,UAc7E"}
@@ -1,9 +0,0 @@
1
- export * from './config.js';
2
- export * from './configPath.js';
3
- export * from './envVars.js';
4
- export * from './generatedDataDir.js';
5
- export * from './paths.js';
6
- export * from './findUp.js';
7
- export * from './prisma.js';
8
- export { getEnvVarDefinitions } from './envVarDefinitions.js';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA"}