Skip to content

Commit

Permalink
Replaced sequential preprocessor (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 authored Dec 20, 2023
1 parent 75f3771 commit 2fa818a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-birds-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@melt-ui/cli': minor
---

feat: Replaced `svelte-sequential-preprocessor`
6 changes: 1 addition & 5 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ import { handleError } from '../utils/handle-error.js';
import { logger } from '../utils/logger.js';
import { installMeltPP, isMeltPPInstalled, parseSvelteConfig } from '../utils/add-pp.js';

const PROJECT_DEPENDENCIES = [
'@melt-ui/svelte',
'@melt-ui/pp',
'svelte-sequential-preprocessor',
] as const;
const PROJECT_DEPENDENCIES = ['@melt-ui/svelte', '@melt-ui/pp'] as const;

const highlight = (text: string) => chalk.cyan(text);

Expand Down
17 changes: 6 additions & 11 deletions src/utils/add-pp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,12 @@ function createPPImports(): Array<ImportDeclaration> {
name: 'preprocessMeltUI',
},
},
],
source: {
type: 'Literal',
value: '@melt-ui/pp',
},
},
{
type: 'ImportDeclaration',
specifiers: [
{
type: 'ImportDefaultSpecifier',
type: 'ImportSpecifier',
imported: {
type: 'Identifier',
name: 'sequence',
},
local: {
type: 'Identifier',
name: 'sequence',
Expand All @@ -166,7 +161,7 @@ function createPPImports(): Array<ImportDeclaration> {
],
source: {
type: 'Literal',
value: 'svelte-sequential-preprocessor',
value: '@melt-ui/pp',
},
},
];
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2020",
"module": "ES2020",
"target": "ESNext",
"module": "NodeNext",
"moduleResolution": "nodenext"
},
"include": ["src/**/*.ts"]
Expand Down

0 comments on commit 2fa818a

Please sign in to comment.