Skip to content

Support 'exports' field in package.json of published modules.#1392

Merged
Perryvw merged 4 commits intoTypeScriptToLua:masterfrom
pilaoda:master
Feb 5, 2023
Merged

Support 'exports' field in package.json of published modules.#1392
Perryvw merged 4 commits intoTypeScriptToLua:masterfrom
pilaoda:master

Conversation

@pilaoda
Copy link
Copy Markdown
Contributor

@pilaoda pilaoda commented Feb 4, 2023

#1389 Fix problem 1

tstl.transpileProject(path.join(projectPath, "dependency1-ts", "tsconfig.json"));

// Install dependencies. This will create node_modules folder with dependency1-ts in it.
execSync("npm i", { cwd: appPath });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to run npm during tests for all kind of reasons (dependency, security, flakyness etc). Please just put dependency1 in node_modules beforehand and compile there, or commit a symlink or something like that.

@@ -0,0 +1,28 @@
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this file be removed now that we no longer do a npm install?

@Perryvw Perryvw merged commit 4c695cf into TypeScriptToLua:master Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants