diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 91ccb1e..4ac58a0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,12 +12,6 @@ jobs: - uses: actions/checkout@v2 - name: Inject slug/short variables uses: rlespinasse/github-slug-action@v3.x - - name: Find and Replace NPM name - uses: jacobtomlinson/gha-find-replace@master - with: - find: "d3-sankey" - replace: "@vizlib/d3-sankey" - include: "package.json" - uses: actions/setup-node@v2 with: node-version: '12.x' diff --git a/package.json b/package.json index 6e9356d..24544b7 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "d3-sankey", + "name": "@vizlib/d3-sankey", "version": "0.12.3", "description": "Visualize flow between nodes in a directed acyclic network.", "keywords": [ @@ -12,8 +12,8 @@ "url": "https://bost.ocks.org/mike/" }, "license": "BSD-3-Clause", - "main": "dist/d3-sankey.js", - "unpkg": "dist/d3-sankey.min.js", + "main": "dist/@vizlib/d3-sankey.js", + "unpkg": "dist/@vizlib/d3-sankey.min.js", "module": "src/index.js", "homepage": "https://github.com/d3/d3-sankey", "repository": { diff --git a/rollup.config.js b/rollup.config.js index 8df74e3..99e2b58 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -34,7 +34,7 @@ export default [ }), copy({ targets: [ - {src: 'src/d3-sankey.d.ts', dest: 'dist'} + {src: 'src/d3-sankey.d.ts', dest: 'dist/@vizlib'} ] }) ] diff --git a/src/d3-sankey.d.ts b/src/d3-sankey.d.ts index 31141d5..6c90be7 100644 --- a/src/d3-sankey.d.ts +++ b/src/d3-sankey.d.ts @@ -1,2 +1 @@ declare module '@vizlib/d3-sankey'; -declare module 'd3-sankey';