0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Switched build and build:ts scripts

ref https://linear.app/tryghost/issue/DEV-20/faster-builds

- `build` should be the overall script to build the package
- `build:ts` should only build TypeScript
- by having them switched around, `build:ts` would call `yarn build`,
  and `yarn` adds several hundreds of milliseconds of time to each build
This commit is contained in:
Daniel Lockyer 2024-09-02 15:09:52 +02:00 committed by Daniel Lockyer
parent e369ca6489
commit 47d1a3c451
12 changed files with 24 additions and 24 deletions

View file

@ -7,8 +7,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",

View file

@ -7,8 +7,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",

View file

@ -8,8 +8,8 @@
"types": "build/index.d.ts",
"scripts": {
"dev": "tsc --watch --preserveWatchOutput --sourceMap",
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"prepare": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",

View file

@ -8,8 +8,8 @@
"types": "build/index.d.ts",
"scripts": {
"dev": "tsc --watch --preserveWatchOutput --sourceMap",
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"prepare": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",

View file

@ -8,8 +8,8 @@
"types": "build/index.d.ts",
"scripts": {
"dev": "tsc --watch --preserveWatchOutput --sourceMap",
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --reporter text --reporter cobertura mocha -r ts-node/register/transpile-only './**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",

View file

@ -7,8 +7,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",

View file

@ -7,8 +7,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",

View file

@ -7,8 +7,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",

View file

@ -7,8 +7,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",

View file

@ -8,8 +8,8 @@
"types": "build/index.d.ts",
"scripts": {
"dev": "tsc --watch --preserveWatchOutput --sourceMap",
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",

View file

@ -7,8 +7,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"test:types": "tsc --noEmit",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:unit && yarn test:types",

View file

@ -8,8 +8,8 @@
"types": "build/index.d.ts",
"scripts": {
"dev": "tsc --watch --preserveWatchOutput --sourceMap",
"build": "tsc",
"build:ts": "yarn build",
"build": "yarn build:ts",
"build:ts": "tsc",
"prepare": "tsc",
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'",
"test": "yarn test:types && yarn test:unit",