Skip to content

Commit 5934c64

Browse files
committed
fix(release): Correctly release esm version as ES5
1 parent 1fd1797 commit 5934c64

File tree

15 files changed

+94
-85
lines changed

15 files changed

+94
-85
lines changed

.travis.yml

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
11
language: node_js
22
node_js:
3-
- "12"
3+
- "lts/*"
44
cache: yarn
5-
deploy:
6-
local_dir: .docs
7-
provider: pages
8-
skip_cleanup: true
9-
github_token: $GH_TOKEN
10-
on:
11-
branch: master
12-
condition: '"$TRAVIS_JOB_NUMBER" == *.1'
13-
script:
14-
- "(yarn lint && yarn test --ci --coverage) || travis_terminate"
15-
- 'if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn build:storybook || travis_terminate 1; fi'
16-
- yarn release
17-
after_success:
18-
- bash <(curl -s https://codecov.io/bash)
5+
stages:
6+
- test
7+
- name: deploy
8+
if: branch = master
9+
- name: release
10+
if: branch = master AND type != pull_request
11+
jobs:
12+
include:
13+
- stage: test
14+
script:
15+
- yarn lint
16+
- yarn test --ci --coverage
17+
after_success:
18+
- bash <(curl -s https://codecov.io/bash)
19+
- stage: deploy
20+
script: yarn build:storybook
21+
deploy:
22+
local_dir: .docs
23+
provider: pages
24+
skip_cleanup: true
25+
github_token: $GH_TOKEN
26+
on:
27+
branch: master
28+
- stage: release
29+
script: skip
30+
deploy:
31+
provider: script
32+
skip_cleanup: true
33+
script: yarn release
34+
on:
35+
branch: master

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 @researchgate/react-intersection-observer authors
3+
Copyright (c) @researchgate/react-intersection-observer authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/docs/components/HigherOrderComponent/WithIntersectionObserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import Observer from '../../../../lib/es/src';
2+
import Observer from '../../../..';
33

44
export default (threshold) => (BaseComponent) => {
55
const displayName =

docs/docs/components/Hook/Hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from 'react';
2-
import { useIntersectionObserver } from '../../../../lib/es/src';
2+
import { useIntersectionObserver } from '../../../..';
33

44
const Hook = () => {
55
const [visibility, setVisibility] = useState('invisible');

docs/docs/components/HookOnlyOnce/HookOnlyOnce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from 'react';
2-
import { useIntersectionObserver } from '../../../../lib/es/src';
2+
import { useIntersectionObserver } from '../../../..';
33

44
const HookOnlyOnce = () => {
55
const [visibility, setVisibility] = useState('invisible');

docs/docs/components/ImpressionTracking/AdImpression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { action } from '@storybook/addon-actions';
4-
import Observer from '../../../../lib/es/src';
4+
import Observer from '../../../..';
55

66
const tracked = action('tracked');
77

docs/docs/components/OnlyOnce/OnlyOnce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import { decorateAction } from '@storybook/addon-actions';
3-
import Observer from '../../../../lib/es/src';
3+
import Observer from '../../../..';
44

55
const storyBookAction = decorateAction([
66
(args) =>

docs/docs/components/Playground/PlaygroundRootMargin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react';
22
import { decorateAction } from '@storybook/addon-actions';
33
import { select } from '@storybook/addon-knobs/react';
4-
import Observer from '../../../../lib/es/src';
4+
import Observer from '../../../..';
55

66
const storyBookAction = decorateAction([
77
(args) =>

docs/docs/components/WindowFrame/WindowFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import { decorateAction } from '@storybook/addon-actions';
3-
import Observer from '../../../../lib/es/src';
3+
import Observer from '../../../..';
44

55
const storyBookAction = decorateAction([
66
(args) =>

docs/docs/components/WindowRoot/WindowRoot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import { decorateAction } from '@storybook/addon-actions';
3-
import Observer from '../../../../lib/es/src';
3+
import Observer from '../../../..';
44

55
const storyBookAction = decorateAction([
66
(args) =>

0 commit comments

Comments
 (0)