ci: ignore prisma sample (temporarily)

This commit is contained in:
Kamil Myśliwiec
2025-03-18 13:30:26 +01:00
parent 104190f371
commit 18ecc9e7cc

View File

@@ -1,5 +1,5 @@
import * as childProcess from 'child_process';
import { blue, magenta } from 'ansis'; import { blue, magenta } from 'ansis';
import * as childProcess from 'child_process';
import * as log from 'fancy-log'; import * as log from 'fancy-log';
import { task } from 'gulp'; import { task } from 'gulp';
import { resolve } from 'path'; import { resolve } from 'path';
@@ -17,10 +17,17 @@ async function executeNpmScriptInSamples(
const directories = getDirs(samplePath); const directories = getDirs(samplePath);
/** // TODO: temporarily ignore Prisma sample as require('.')
* A dictionary that maps the sample number to the minimum Node.js version // leads to Module '"@prisma/client"' has no exported member 'Post' error
* required to execute any scripts. const prismaSampleIndex = directories.indexOf(
*/ `${samplePath}/22-graphql-prisma`,
);
if (prismaSampleIndex !== -1) {
directories.splice(prismaSampleIndex, 1);
}
// A dictionary that maps the sample number to the minimum Node.js version
// required to execute any scripts.
const minNodejsVersionBySampleNumber = { const minNodejsVersionBySampleNumber = {
'34': 18, // we could use `engines.node` from package.json instead of hardcoding '34': 18, // we could use `engines.node` from package.json instead of hardcoding
'35': 22, '35': 22,