google-closure-compiler-linux 20250515.0.0-nightly → 20250518.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/compiler +0 -0
  2. package/index.js +6 -3
  3. package/package.json +5 -1
package/compiler CHANGED
Binary file
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2018 The Closure Compiler Authors.
2
+ * Copyright 2019 The Closure Compiler Authors.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -14,5 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- const path = require('path');
18
- module.exports = path.resolve(__dirname, 'compiler');
17
+ import path from 'node:path';
18
+ import { fileURLToPath, URL } from 'node:url';
19
+
20
+ const __dirname = fileURLToPath(new URL('.', import.meta.url));
21
+ export default path.resolve(__dirname, 'compiler');
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "google-closure-compiler-linux",
3
- "version": "20250515.0.0-nightly",
3
+ "version": "20250518.0.0",
4
4
  "description": "Check, compile, optimize and compress Javascript with Closure-Compiler using Java",
5
+ "type": "module",
5
6
  "main": "index.js",
6
7
  "repository": {
7
8
  "type": "git",
@@ -31,6 +32,9 @@
31
32
  "test": "node ./test.js",
32
33
  "prepublishOnly": "node ../../build-scripts/ensure-file-exists.js compiler"
33
34
  },
35
+ "devDependencies": {
36
+ "chalk": "5.x"
37
+ },
34
38
  "os": [
35
39
  "linux"
36
40
  ],