Removed typescript declaration build step for i18n (#17023)

ref https://ghost.slack.com/archives/C02G9E68C/p1686735066587639

### <samp>🤖 Generated by Copilot at f9ec3e9</samp>

This pull request removes redundant build scripts from the `ghost/i18n`
and `ghost/signup-form` packages. This simplifies the build process and
avoids unnecessary TypeScript compilation.
This commit is contained in:
Ronald Langeveld 2023-06-14 16:51:14 +02:00 committed by GitHub
parent 5bb4a94444
commit b8935a918e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 15 deletions

View File

@ -8,7 +8,6 @@
"types": "./build/i18n.d.ts", "types": "./build/i18n.d.ts",
"scripts": { "scripts": {
"dev": "echo \"Implement me!\"", "dev": "echo \"Implement me!\"",
"build": "tsc",
"test:unit:base": "NODE_ENV=testing c8 --include index.js --include lib --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", "test:unit:base": "NODE_ENV=testing c8 --include index.js --include lib --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'",
"test:unit": "yarn test:unit:base && yarn translate", "test:unit": "yarn test:unit:base && yarn translate",
"test": "yarn test:unit", "test": "yarn test:unit",

View File

@ -1,13 +0,0 @@
{
"compilerOptions": {
"allowJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "./build",
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
},
"include": ["lib/**/*.js"],
"exclude": ["node_modules", "test"]
}

View File

@ -21,7 +21,6 @@
"preview": "concurrently \"vite preview -l silent\" \"vite build --watch\"", "preview": "concurrently \"vite preview -l silent\" \"vite build --watch\"",
"dev:test": "vite build && vite preview --port 6175", "dev:test": "vite build && vite preview --port 6175",
"build": "tsc && vite build", "build": "tsc && vite build",
"prebuild": "yarn workspace @tryghost/i18n build",
"lint": "yarn run lint:js", "lint": "yarn run lint:js",
"lint:js": "eslint --ext .js,.ts,.cjs,.tsx --cache src test", "lint:js": "eslint --ext .js,.ts,.cjs,.tsx --cache src test",
"test:unit": "yarn build", "test:unit": "yarn build",

1
ghost/signup-form/src/i18n.d.ts vendored Normal file
View File

@ -0,0 +1 @@
declare module '@tryghost/i18n';