diff --git a/package.json b/package.json index 2886d71..dded11f 100644 --- a/package.json +++ b/package.json @@ -30,10 +30,8 @@ "access": "public" }, "scripts": { - "build": "npm run build:res && snowpack build", - "build:res": "rescript build", - "clean": "npm run clean:res", - "clean:res": "rescript clean", + "build": "snowpack build", + "clean": "rescript clean", "start": "snowpack dev", "test": "web-test-runner \"src/**/__tests__/*.bs.js\"" }, @@ -43,14 +41,14 @@ "react-dom": "^17.0.2" }, "devDependencies": { + "@jihchi/plugin-rescript": "^1.0.0", "@snowpack/plugin-dotenv": "^2.1.0", "@snowpack/plugin-react-refresh": "^2.4.2", - "@snowpack/plugin-run-script": "^2.3.0", "@snowpack/web-test-runner-plugin": "^0.2.2", "@testing-library/react": "^11.2.6", "@web/test-runner": "^0.12.19", "chai": "^4.3.4", "rescript": "^9.1.1", - "snowpack": "^3.3.3" + "snowpack": "~3.0" } } diff --git a/snowpack.config.js b/snowpack.config.js index 30cfc26..369c331 100644 --- a/snowpack.config.js +++ b/snowpack.config.js @@ -8,13 +8,7 @@ module.exports = { plugins: [ '@snowpack/plugin-react-refresh', '@snowpack/plugin-dotenv', - [ - '@snowpack/plugin-run-script', - { - cmd: 'npm run build:res', - watch: '$1 -- -w', - }, - ], + '@jihchi/plugin-rescript', ], packageOptions: { /* ... */