diff --git a/.gitignore b/.gitignore index b512c09..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -node_modules \ No newline at end of file +node_modules diff --git a/package.json b/package.json deleted file mode 100644 index 876352f..0000000 --- a/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "tsgo-repros", - "private": true, - "type": "module", - "version": "0.0.0", - "scripts": { - "type-check:tsc": "tsc", - "type-check:tsgo": "tsgo" - }, - "devDependencies": { - "@typescript/native-preview": "7.0.0-dev.20250617.1", - "typescript": "5.8.3" - } -} diff --git a/packages/my-package-b/dist/index.js b/packages/my-package-b/dist/index.js new file mode 100644 index 0000000..2a27c44 --- /dev/null +++ b/packages/my-package-b/dist/index.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myFunction = void 0; +var myFunction = function () { + console.log("Hello from my-package!"); +}; +exports.myFunction = myFunction; diff --git a/packages/my-package-b/dist/index.ts b/packages/my-package-b/dist/index.ts new file mode 100644 index 0000000..2cc44dc --- /dev/null +++ b/packages/my-package-b/dist/index.ts @@ -0,0 +1,3 @@ +export const myFunction = () => { + console.log("Hello from my-package!"); +}; diff --git a/packages/my-package-b/package.json b/packages/my-package-b/package.json new file mode 100644 index 0000000..312484b --- /dev/null +++ b/packages/my-package-b/package.json @@ -0,0 +1,14 @@ +{ + "name": "@tsgo-repros/my-package-b", + "version": "1.0.0", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "scripts": { + "tsgo": "tsgo", + "tsc": "tsc" + }, + "devDependencies": { + "@typescript/native-preview": "7.0.0-dev.20250617.1", + "typescript": "5.8.3" + } +} diff --git a/packages/my-package-b/src/index.ts b/packages/my-package-b/src/index.ts new file mode 100644 index 0000000..2cc44dc --- /dev/null +++ b/packages/my-package-b/src/index.ts @@ -0,0 +1,3 @@ +export const myFunction = () => { + console.log("Hello from my-package!"); +}; diff --git a/packages/my-package-b/tsconfig.json b/packages/my-package-b/tsconfig.json new file mode 100644 index 0000000..12534a6 --- /dev/null +++ b/packages/my-package-b/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "outDir": "${configDir}/dist", + }, + "include": ["src/**/*.ts"] +} diff --git a/packages/my-package/dist/index.js b/packages/my-package/dist/index.js new file mode 100644 index 0000000..6f0af62 --- /dev/null +++ b/packages/my-package/dist/index.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.myFunction = void 0; +var my_package_b_1 = require("@tsgo-repros/my-package-b"); +var myFunction = function () { + console.log("Hello from my-package!"); +}; +exports.myFunction = myFunction; +(0, my_package_b_1.myFunction)(); diff --git a/packages/my-package/package.json b/packages/my-package/package.json new file mode 100644 index 0000000..6ce3b43 --- /dev/null +++ b/packages/my-package/package.json @@ -0,0 +1,15 @@ +{ + "name": "@tsgo-repros/my-package", + "version": "1.0.0", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "scripts": { + "tsgo": "tsgo", + "tsc": "tsc" + }, + "devDependencies": { + "@typescript/native-preview": "7.0.0-dev.20250617.1", + "typescript": "5.8.3", + "@tsgo-repros/my-package-b": "workspace:*" + } +} diff --git a/packages/my-package/src/index.ts b/packages/my-package/src/index.ts new file mode 100644 index 0000000..0d2593f --- /dev/null +++ b/packages/my-package/src/index.ts @@ -0,0 +1,7 @@ +import { myFunction as myFunctionB } from "@tsgo-repros/my-package-b"; + +export const myFunction = () => { + console.log("Hello from my-package!"); +}; + +myFunctionB(); diff --git a/packages/my-package/tsconfig.json b/packages/my-package/tsconfig.json new file mode 100644 index 0000000..12534a6 --- /dev/null +++ b/packages/my-package/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "outDir": "${configDir}/dist", + }, + "include": ["src/**/*.ts"] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 569945a..2878de5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,98 +1,94 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false +lockfileVersion: 5.4 importers: - .: + packages/my-package: + specifiers: + '@tsgo-repros/my-package-b': workspace:* + '@typescript/native-preview': 7.0.0-dev.20250617.1 + typescript: 5.8.3 + devDependencies: + '@tsgo-repros/my-package-b': link:../my-package-b + '@typescript/native-preview': 7.0.0-dev.20250617.1 + typescript: 5.8.3 + + packages/my-package-b: + specifiers: + '@typescript/native-preview': 7.0.0-dev.20250617.1 + typescript: 5.8.3 devDependencies: - '@typescript/native-preview': - specifier: 7.0.0-dev.20250617.1 - version: 7.0.0-dev.20250617.1 - typescript: - specifier: 5.8.3 - version: 5.8.3 + '@typescript/native-preview': 7.0.0-dev.20250617.1 + typescript: 5.8.3 packages: - '@typescript/native-preview-darwin-arm64@7.0.0-dev.20250617.1': + /@typescript/native-preview-darwin-arm64/7.0.0-dev.20250617.1: resolution: {integrity: sha512-GfymQ0cnEWOoae9Yb/20VE9Mqd4gowOPRzfxJtCbmYc8Yr2XAEavKnB8eHgtE5LYxML2796GADmIRhSS2qkmeA==} engines: {node: '>=20.6.0'} cpu: [arm64] os: [darwin] + requiresBuild: true + dev: true + optional: true - '@typescript/native-preview-darwin-x64@7.0.0-dev.20250617.1': + /@typescript/native-preview-darwin-x64/7.0.0-dev.20250617.1: resolution: {integrity: sha512-ZIDJvjYeB2+uHsaQCGwpFbbMdLiJQMWIdTV2ba4cFKDMEQrrj2idPL0NH618joChE8enQ1E6YBMFtJcunzaO5A==} engines: {node: '>=20.6.0'} cpu: [x64] os: [darwin] + requiresBuild: true + dev: true + optional: true - '@typescript/native-preview-linux-arm64@7.0.0-dev.20250617.1': - resolution: {integrity: sha512-/OGztX0ZTvOq1xjE0m4bKC0+0ADFopE1+wG5P2x0eifgYJqWS8Z3hZGzCIZ9EntEw5ehaaepSs2x+rFYw/mozg==} + /@typescript/native-preview-linux-arm/7.0.0-dev.20250617.1: + resolution: {integrity: sha512-BImtvCIl8QrJaMhAvu4cW/aguShR29ypSPqFBMzGHGttdA0A9Opqwv4KB4JP9Pa3FPIrsvQ3EnKIzXYsxR1rXQ==} engines: {node: '>=20.6.0'} - cpu: [arm64] + cpu: [arm] os: [linux] + requiresBuild: true + dev: true + optional: true - '@typescript/native-preview-linux-arm@7.0.0-dev.20250617.1': - resolution: {integrity: sha512-BImtvCIl8QrJaMhAvu4cW/aguShR29ypSPqFBMzGHGttdA0A9Opqwv4KB4JP9Pa3FPIrsvQ3EnKIzXYsxR1rXQ==} + /@typescript/native-preview-linux-arm64/7.0.0-dev.20250617.1: + resolution: {integrity: sha512-/OGztX0ZTvOq1xjE0m4bKC0+0ADFopE1+wG5P2x0eifgYJqWS8Z3hZGzCIZ9EntEw5ehaaepSs2x+rFYw/mozg==} engines: {node: '>=20.6.0'} - cpu: [arm] + cpu: [arm64] os: [linux] + requiresBuild: true + dev: true + optional: true - '@typescript/native-preview-linux-x64@7.0.0-dev.20250617.1': + /@typescript/native-preview-linux-x64/7.0.0-dev.20250617.1: resolution: {integrity: sha512-YgJQ86WmTiTcm0bfV3cJr06lj4AXjnRSQ7wPn4Akie1ZnBwJ/MuBkSshcikeizEcwSNDq1wfcC1ajNTlwA6zlw==} engines: {node: '>=20.6.0'} cpu: [x64] os: [linux] + requiresBuild: true + dev: true + optional: true - '@typescript/native-preview-win32-arm64@7.0.0-dev.20250617.1': + /@typescript/native-preview-win32-arm64/7.0.0-dev.20250617.1: resolution: {integrity: sha512-VGJL5ovkI2G4XCWeiAbQWIj2a20HIeZ5aXqxdqp6toiJ71K/w1iWa1UUFmS7Ahszr3IGUWMp54OKD8pH77+dow==} engines: {node: '>=20.6.0'} cpu: [arm64] os: [win32] + requiresBuild: true + dev: true + optional: true - '@typescript/native-preview-win32-x64@7.0.0-dev.20250617.1': + /@typescript/native-preview-win32-x64/7.0.0-dev.20250617.1: resolution: {integrity: sha512-w11yreVQnIP+QLF84OJUkHq7xdk5x3N6BWKnawcqYkSXLLkWBCJtzxUKr4+rT2cnITOGqWX7IVKBkWY0pJzBWw==} engines: {node: '>=20.6.0'} cpu: [x64] os: [win32] + requiresBuild: true + dev: true + optional: true - '@typescript/native-preview@7.0.0-dev.20250617.1': + /@typescript/native-preview/7.0.0-dev.20250617.1: resolution: {integrity: sha512-ns9t0bz3JMuUnzeRbFFjPkVPJozl0gkEzPk6RTAALC/oAyCD22ZWWNT2f/4BnfaPCSv/VmS+DE+ehsBUhlLyvw==} engines: {node: '>=20.6.0'} hasBin: true - - typescript@5.8.3: - resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} - engines: {node: '>=14.17'} - hasBin: true - -snapshots: - - '@typescript/native-preview-darwin-arm64@7.0.0-dev.20250617.1': - optional: true - - '@typescript/native-preview-darwin-x64@7.0.0-dev.20250617.1': - optional: true - - '@typescript/native-preview-linux-arm64@7.0.0-dev.20250617.1': - optional: true - - '@typescript/native-preview-linux-arm@7.0.0-dev.20250617.1': - optional: true - - '@typescript/native-preview-linux-x64@7.0.0-dev.20250617.1': - optional: true - - '@typescript/native-preview-win32-arm64@7.0.0-dev.20250617.1': - optional: true - - '@typescript/native-preview-win32-x64@7.0.0-dev.20250617.1': - optional: true - - '@typescript/native-preview@7.0.0-dev.20250617.1': optionalDependencies: '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20250617.1 '@typescript/native-preview-darwin-x64': 7.0.0-dev.20250617.1 @@ -101,5 +97,10 @@ snapshots: '@typescript/native-preview-linux-x64': 7.0.0-dev.20250617.1 '@typescript/native-preview-win32-arm64': 7.0.0-dev.20250617.1 '@typescript/native-preview-win32-x64': 7.0.0-dev.20250617.1 + dev: true - typescript@5.8.3: {} + /typescript/5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + dev: true diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..dee51e9 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - "packages/*" diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index d35bbbb..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "noEmit": true - }, - "include": [ - "**/*.ts", - ], -}