mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor: create shared workspace (#51454)
This commit is contained in:
committed by
GitHub
parent
3c0c14b427
commit
391fc2e34d
@@ -8,7 +8,7 @@ import {
|
||||
CurriculumProps
|
||||
} from './build-external-curricula-data';
|
||||
|
||||
const globalConfigPath = path.resolve(__dirname, '../../../config');
|
||||
const globalConfigPath = path.resolve(__dirname, '../../../shared/config');
|
||||
|
||||
// We are defaulting to English because the ids for the challenges are same
|
||||
// across all languages.
|
||||
|
||||
@@ -4,7 +4,7 @@ import fs from 'fs';
|
||||
import readdirp from 'readdirp';
|
||||
// TODO: remove chai and use jest's assertion errors
|
||||
import { AssertionError } from 'chai';
|
||||
import { SuperBlocks } from '../../../config/superblocks';
|
||||
import { SuperBlocks } from '../../../shared/config/superblocks';
|
||||
import {
|
||||
superblockSchemaValidator,
|
||||
availableSuperBlocksValidator
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { mkdirSync, writeFileSync, readFileSync } from 'fs';
|
||||
import { resolve, dirname } from 'path';
|
||||
import { submitTypes } from '../../../config/challenge-types';
|
||||
import { submitTypes } from '../../../shared/config/challenge-types';
|
||||
import { type ChallengeNode } from '../../../client/src/redux/prop-types';
|
||||
import { SuperBlocks } from '../../../config/superblocks';
|
||||
import { SuperBlocks } from '../../../shared/config/superblocks';
|
||||
|
||||
type Intro = { [keyValue in SuperBlocks]: IntroProps };
|
||||
export type Curriculum<T> = {
|
||||
|
||||
Reference in New Issue
Block a user