-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2597 from opral/add-typecheck-to-build
moves or adds tsc --noEmit from test to build phase
- Loading branch information
Showing
20 changed files
with
145 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
inlang/source-code/paraglide/paraglide-js-adapter-next/plugins.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { rollup } from "rollup" | ||
import preserveDirectives from "rollup-preserve-directives" | ||
import typescript from "@rollup/plugin-typescript" | ||
import cjs from "@rollup/plugin-commonjs" | ||
import json from "@rollup/plugin-json" | ||
import resolve from "@rollup/plugin-node-resolve" | ||
import replace from "@rollup/plugin-replace" | ||
import fs from "node:fs/promises" | ||
|
||
const packageJson = JSON.parse(await fs.readFile("./package.json", "utf-8")) | ||
const version = packageJson.version | ||
if (typeof version !== "string") { | ||
throw new Error("the version in package.json is not a string") | ||
} | ||
|
||
export const plugins = [ | ||
typescript({ tsconfig: "./tsconfig.json" }), | ||
cjs(), | ||
resolve(), | ||
preserveDirectives(), | ||
json(), | ||
replace({ | ||
values: { | ||
MARKETPLACE_ID: JSON.stringify("library.inlang.paraglideJsAdapterNextJs"), | ||
PARAGLIDE_NEXT_VERSION: JSON.stringify(version), | ||
}, | ||
preventAssignment: true, | ||
}), | ||
] |
2 changes: 1 addition & 1 deletion
2
inlang/source-code/paraglide/paraglide-js-adapter-next/vitest.config.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
inlang/source-code/paraglide/paraglide-js-adapter-rollup/example/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"name": "@inlang/paraglide-js-adapter-rollup-example", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"build": "rollup src/main.js --config rollup.config.js", | ||
"clean": "rm -rf ./dist ./node_modules ./src/paraglide" | ||
}, | ||
"devDependencies": { | ||
"@inlang/paraglide-js": "workspace:*", | ||
"@inlang/paraglide-js-adapter-rollup": "workspace:*", | ||
"rollup": "3.29.1", | ||
"@rollup/plugin-alias": "^5.0.1", | ||
"typescript": "^4.9.3" | ||
} | ||
"name": "@inlang/paraglide-js-adapter-rollup-example", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"build": "rollup src/main.js --config rollup.config.js && tsc --noEmit", | ||
"clean": "rm -rf ./dist ./node_modules ./src/paraglide" | ||
}, | ||
"devDependencies": { | ||
"@inlang/paraglide-js": "workspace:*", | ||
"@inlang/paraglide-js-adapter-rollup": "workspace:*", | ||
"rollup": "3.29.1", | ||
"@rollup/plugin-alias": "^5.0.1", | ||
"typescript": "^4.9.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
inlang/source-code/paraglide/paraglide-js-adapter-webpack/example/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"name": "@inlang/paraglide-js-adapter-webpack-example", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"build": "webpack --config webpack.config.js", | ||
"clean": "rm -rf ./dist ./node_modules ./src/paraglide" | ||
}, | ||
"devDependencies": { | ||
"@inlang/paraglide-js": "workspace:*", | ||
"@inlang/paraglide-js-adapter-webpack": "workspace:*", | ||
"typescript": "^4.9.3", | ||
"webpack": "^5.89.0", | ||
"webpack-cli": "^5.1.4" | ||
} | ||
"name": "@inlang/paraglide-js-adapter-webpack-example", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"build": "webpack --config webpack.config.js && tsc --noEmit", | ||
"clean": "rm -rf ./dist ./node_modules ./src/paraglide" | ||
}, | ||
"devDependencies": { | ||
"@inlang/paraglide-js": "workspace:*", | ||
"@inlang/paraglide-js-adapter-webpack": "workspace:*", | ||
"typescript": "^4.9.3", | ||
"webpack": "^5.89.0", | ||
"webpack-cli": "^5.1.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.