Skip to content

Commit 2780475

Browse files
committed
Remove the scripts that was listing the export, we do it manually from now on, and moove the scripts/ directory out of the src/ dir
1 parent 70d12fc commit 2780475

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+43
-166
lines changed

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"url": "git://github.com/codegouvfr/react-dsfr.git"
88
},
99
"scripts": {
10-
"build": "ts-node -T src/scripts/build",
11-
"_link": "ts-node -T src/scripts/link-in-integration-apps.ts",
12-
"link-external": "ts-node -T src/scripts/link-in-external-project.ts",
10+
"build": "ts-node -T scripts/build",
11+
"_link": "ts-node -T scripts/link-in-integration-apps.ts",
12+
"link-external": "ts-node -T scripts/link-in-external-project.ts",
1313
"start-cra": "yarn build && yarn _link && ((tsc -w -p src) & (cd test/integration/cra && yarn start))",
1414
"start-vite": "yarn build && yarn _link && ((tsc -w -p src) & (cd test/integration/vite && yarn dev))",
1515
"start-next-pagesdir": "yarn build && yarn _link && ((tsc -w -p src) & (cd test/integration/next-pagesdir && yarn dev))",
@@ -38,7 +38,7 @@
3838
},
3939
"husky": {
4040
"hooks": {
41-
"pre-commit": "ts-node -T src/scripts/list-exports.ts && git add package.json && lint-staged -v"
41+
"pre-commit": "lint-staged -v"
4242
}
4343
},
4444
"author": {
@@ -47,7 +47,6 @@
4747
"license": "MIT",
4848
"files": [
4949
"src/",
50-
"!src/scripts/",
5150
"dist/",
5251
"!dist/tsconfig.tsbuildinfo",
5352
"!dist/bin/tsconfig.tsbuildinfo",

src/scripts/build/build.ts renamed to scripts/build/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { tsc } from "../tools/tsc";
2-
import { getProjectRoot } from "../../bin/tools/getProjectRoot";
2+
import { getProjectRoot } from "../../src/bin/tools/getProjectRoot";
33
import { join as pathJoin } from "path";
44
import * as fs from "fs";
55
import { getPatchedRawCssCodeForCompatWithRemixIcon, collectIcons } from "./icons";
66
import { cssToTs } from "./cssToTs";
77
import {
88
pathOfPatchedRawCssCodeForCompatWithRemixIconRelativeToDsfrDist,
99
pathOfIconsJson
10-
} from "../../bin/only-include-used-icons";
10+
} from "../../src/bin/only-include-used-icons";
1111
import * as child_process from "child_process";
1212
import { oppa } from "oppa";
1313
import { assert } from "tsafe/assert";
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/scripts/build/cssToTs/cssToTs.ts renamed to scripts/build/cssToTs/cssToTs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { generateBreakpointsTsCode } from "./breakpoints";
22
import { generateGetColorDecisionsTsCode } from "./colorDecisions";
33
import { generateGetColorOptionsTsCode } from "./colorOptions";
4-
import { getProjectRoot } from "../../../bin/tools/getProjectRoot";
4+
import { getProjectRoot } from "../../../src/bin/tools/getProjectRoot";
55
import { generateTypographyTsCode } from "./typography";
66
import { generateSpacingTsCode } from "./spacing";
77
import { generateClassNamesTsCode } from "./classNames";
88
import { generateColorDecisionAndCorrespondingOptionsTsCode } from "./colorDecisionAndCorrespondingOptions";
99
import * as fs from "fs";
1010
import { join as pathJoin, basename as pathBasename, relative as pathRelative } from "path";
11-
import type { Icon } from "../../../bin/only-include-used-icons";
11+
import type { Icon } from "../../../src/bin/only-include-used-icons";
1212

1313
export function cssToTs(params: {
1414
rawDsfrCssCode: string;
File renamed without changes.

0 commit comments

Comments
 (0)