Skip to content

Commit

Permalink
Main JS file renamed to kotlinx-atomicfu.js to match NPM module name
Browse files Browse the repository at this point in the history
  • Loading branch information
elizarov committed Jun 15, 2018
1 parent 0f04ff1 commit 7c9512b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions atomicfu-js/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ tasks.withType(compileKotlin2Js.getClass()) {

compileKotlin2Js {
kotlinOptions {
// drop -js suffix from main outputFile, but don't do it for tests
// see https://youtrack.jetbrains.com/issue/KT-23582
def baseName = project.name - "-js"
// NOTE: Module base-name must be equal to the package name declared in package.json
def baseName = "kotlinx-atomicfu"
outputFile = new File(outputFile.parent, baseName + ".js")
}
}
Expand Down
2 changes: 1 addition & 1 deletion atomicfu-js/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "kotlinx-atomicfu",
"version" : "$version",
"description" : "AtomicFU utilities for JS",
"main" : "atomicfu.js",
"main" : "kotlinx-atomicfu.js",
"author": "JetBrains",
"license": "Apache-2.0",
"homepage": "https://github.com/Kotlin/atomicfu",
Expand Down

0 comments on commit 7c9512b

Please sign in to comment.