Skip to content

Commit 401015c

Browse files
committed
Add NPM prepublishOnly
1 parent 3a83c5c commit 401015c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Changelog
22

33
### 15.0.0 (*2021-05-02*)
4-
- noUiSlider is now written and distributed as Typescript;
4+
- noUiSlider is now written and distributed as TypeScript;
55
- Types are now provided. If you are currently using [@types/nouislider](https://www.npmjs.com/package/@types/nouislider), this should be replaced;
66
- The distributed files have moved from `distribute` to `dist` in the NPM package, and are no longer in the repository; You may need to change the path to the noUiSlider CSS file if you are importing it using a package manager;
77
- Fixed: Slider now properly works in multiple layers of Shadow DOM (#1121);
88
- Removed: `version` from exceptions and export;
99
- Removed: Bower support;
1010

1111
### 14.7.0 (*2021-04-06*)
12-
- noUiSlider is now build with Typescript. This release contains no further changes.
12+
- noUiSlider is now build with TypeScript. This release contains no further changes.
1313

1414
### 14.6.4 (*2021-03-18*)
1515
- Fixed: Fixed `updateOptions` with falsy value for `start` (#1127);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"build:styles": "npm run build:styles:write && npm run build:styles:compress",
1515
"build:styles:write": "lessc src/nouislider.less dist/nouislider.css",
1616
"build:styles:compress": "lessc src/nouislider.less dist/nouislider.min.css --clean-css",
17+
"prepublishOnly": "npm run build",
1718
"format": "prettier src/nouislider.ts --write --config .prettierrc",
1819
"lint": "eslint src/nouislider.ts",
1920
"docs": "cd ../ && php -S localhost:80 nouislider/documentation/_run/router.php"

tests/iframe/slider.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22

3-
<link href="../../dist/nouislider.min.css" rel="stylesheet">
3+
<link href="/nouislider/dist/nouislider.min.css" rel="stylesheet">
44
<style>
55
#slider {
66
width: 250px;
@@ -10,7 +10,7 @@
1010

1111
<div id="slider"></div>
1212

13-
<script src="../../dist/nouislider.js"></script>
13+
<script src="/nouislider/dist/nouislider.js"></script>
1414
<script>
1515
var slider = document.getElementById('slider');
1616
noUiSlider.create(slider, {

0 commit comments

Comments
 (0)