Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOP-5179: using pnpm and the extension class for redirects-and-publish extension #43

Merged
merged 7 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[build]
command = "netlify-extension build"
command = "pnpm build"
publish = ".ntli/site/static"

[dev]
command = "netlify-extension dev"

[functions]
directory = "src/endpoints"

[dev]
command = "netlify-extension dev"

[[plugins]]
package = "@netlify/netlify-plugin-netlify-extension"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "src/index.ts",
"type": "module",
"scripts": {
"build": "netlify-extension build -a",
"build": "pnpm --filter util build && netlify-extension build -a",
"dev": "netlify-extension dev --open"
},
"dependencies": {
Expand All @@ -24,7 +24,8 @@
"devDependencies": {
"@netlify/netlify-plugin-netlify-extension": "^1.0.3",
"@tsconfig/node18": "^18.2.4",
"@tsconfig/recommended": "^1.0.7",
"@tsconfig/recommended": "^1.0.8",
"util": "workspace:*",
"@tsconfig/strictest": "^2.0.5",
"@tsconfig/vite-react": "^3.0.2",
"@types/react": "^18.3.12",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// // Documentation: https://sdk.netlify.com
import { envVarToBool, Extension } from './extension';
import { envVarToBool, Extension } from 'util/extension';
import { mutRedirectsAndPublish } from './mutRedirectsAndPublish';

const extension = new Extension({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ConfigEnvironmentVariables } from './types';
import type { ConfigEnvironmentVariables } from 'util/extension';
import type { NetlifyPluginUtils } from '@netlify/build';

const MUT_VERSION = process.env.MUT_VERSION;
Expand Down
20 changes: 20 additions & 0 deletions extensions/redirects-and-publish/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": [
"@tsconfig/recommended/tsconfig.json",
"@tsconfig/node18/tsconfig.json"
],
"compilerOptions": {
"noEmit": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"verbatimModuleSyntax": true,
"module": "ES2022",
"moduleResolution": "bundler",
"paths": {
"bson": ["../../node_modules/bson/src/"]
}
},
"include": ["src"],
"exclude": ["dist/", "src/ui/"]
}
2 changes: 1 addition & 1 deletion libs/util/src/databaseConnection/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface EnvironmentConfig {

export interface DocsetsDocument {
project: string;
bucket: string;
bucket: EnvironmentConfig;
url: EnvironmentConfig;
prefix: EnvironmentConfig;
}
Expand Down
107 changes: 91 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading