Skip to content

Commit 24bf864

Browse files
committed
tweak package name
1 parent d21b4b8 commit 24bf864

File tree

7 files changed

+21
-17
lines changed

7 files changed

+21
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
run: npm ci
2828

2929
- name: Check formatting
30-
run: npm run format:check
30+
run: node --run format:check
3131

3232
- name: Type check
33-
run: npm run typecheck
33+
run: node --run typecheck
3434

3535
- name: Build
36-
run: npm run build
36+
run: node --run build

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232
run: npm ci
3333

3434
- name: Check formatting
35-
run: npm run format:check
35+
run: node --run format:check
3636

3737
- name: Type check
38-
run: npm run typecheck
38+
run: node --run typecheck
3939

4040
- name: Build
41-
run: npm run build
41+
run: node --run build
4242

4343
- name: Update version
4444
run: |

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The plugin does not process the CSS in any way whatsoever, it is merely output i
99
## Installation
1010

1111
```
12-
npm install -D ecis
12+
npm install -D @nstep/ecis
1313
```
1414

1515
## Usage
@@ -18,7 +18,7 @@ Source input:
1818

1919
```ts
2020
/* main.ts */
21-
import { css } from 'ecis';
21+
import { css } from '@nstep/ecis';
2222
import { redClassname } from './styles';
2323

2424
const myButtonClassname = css`
@@ -32,7 +32,7 @@ const myButtonClassname = css`
3232

3333
```ts
3434
/* styles.ts */
35-
import { css } from 'ecis';
35+
import { css } from '@nstep/ecis';
3636

3737
const color = 'red';
3838

@@ -73,7 +73,7 @@ In `rolldown.config.ts`:
7373

7474
```ts
7575
import { defineConfig } from 'rolldown';
76-
import { ecis } from 'ecis/plugin';
76+
import { ecis } from '@nstep/ecis/plugin';
7777

7878
export default defineConfig({
7979
// ...
@@ -85,7 +85,7 @@ In `vite.config.ts`:
8585

8686
```ts
8787
import { defineConfig } from 'vite';
88-
import { ecis } from 'ecis/plugin';
88+
import { ecis } from '@nstep/ecis/plugin';
8989

9090
export default defineConfig({
9191
// ...

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @example
33
* input:
44
* ```js
5-
* import { css } from 'ecis';
5+
* import { css } from '@nstep/ecis';
66
*
77
* const myClass = css`
88
* color: red;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ecis",
2+
"name": "@nstep/ecis",
33
"version": "0.0.0",
44
"description": "Rolldown and Vite plugin to Extract CSS-in-JS",
55
"keywords": [

src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ function hashText(text: string): string {
3333
* Removes the import statement for 'ecis'
3434
*/
3535
function removeImport(code: string): string {
36-
// Remove import { css } from 'ecis';
37-
return code.replace(/import\s+{\s*css\s*}\s+from\s+['"]ecis['"];?\s*/g, '');
36+
// TODO: remove via ast
37+
// Remove import { css } from '@nstep/ecis';
38+
return code.replace(
39+
/import\s+{\s*css\s*}\s+from\s+['"](@nstep\/|)ecis['"];?\s*/g,
40+
'',
41+
);
3842
}
3943

4044
/**

0 commit comments

Comments
 (0)