Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
add console log
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed May 19, 2023
1 parent 7003d29 commit 694621a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,14 @@ module.exports = class Next2DWebpackAutoLoaderPlugin

glob(`${dir}/src/**/*.js`, (err, files) =>
{
console.log("cwd: ", dir);

Check warning on line 180 in index.js

View workflow job for this annotation

GitHub Actions / windows-browser-test

Unexpected console statement

Check warning on line 180 in index.js

View workflow job for this annotation

GitHub Actions / macos-browser-test

Unexpected console statement

Check warning on line 180 in index.js

View workflow job for this annotation

GitHub Actions / macos-browser-test

Unexpected console statement

Check warning on line 180 in index.js

View workflow job for this annotation

GitHub Actions / windows-browser-test

Unexpected console statement
if (err) {
throw err;
}

let imports = "";
let packages = `[${os.EOL}`;
console.log("Files: ", files);

Check warning on line 187 in index.js

View workflow job for this annotation

GitHub Actions / windows-browser-test

Unexpected console statement

Check warning on line 187 in index.js

View workflow job for this annotation

GitHub Actions / macos-browser-test

Unexpected console statement

Check warning on line 187 in index.js

View workflow job for this annotation

GitHub Actions / macos-browser-test

Unexpected console statement

Check warning on line 187 in index.js

View workflow job for this annotation

GitHub Actions / windows-browser-test

Unexpected console statement
files.forEach((file) =>
{
const js = fs.readFileSync(file, { "encoding": "utf-8" });
Expand Down Expand Up @@ -232,6 +234,7 @@ module.exports = class Next2DWebpackAutoLoaderPlugin
packages += `${os.EOL}]`;

const value = `${imports}const packages=${packages};${os.EOL}export { packages };`;
console.log("Export: ", this._$cachePackages, value);

Check warning on line 237 in index.js

View workflow job for this annotation

GitHub Actions / windows-browser-test

Unexpected console statement

Check warning on line 237 in index.js

View workflow job for this annotation

GitHub Actions / macos-browser-test

Unexpected console statement

Check warning on line 237 in index.js

View workflow job for this annotation

GitHub Actions / macos-browser-test

Unexpected console statement

Check warning on line 237 in index.js

View workflow job for this annotation

GitHub Actions / windows-browser-test

Unexpected console statement
if (this._$cachePackages !== value) {
// cache
this._$cachePackages = value;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@next2d/webpack-auto-loader-plugin",
"description": "Next2D Framework webpack Auto Loader plugin.",
"version": "1.6.1",
"version": "1.6.2",
"author": "Toshiyuki Ienaga <ienaga@tvon.jp>",
"license": "MIT",
"main": "index.js",
Expand Down

0 comments on commit 694621a

Please sign in to comment.